芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/vendor/box/spout/src/Spout/Common/Entity/Style/Style.php
id; } /** * @param int $id * @return Style */ public function setId($id) { $this->id = $id; return $this; } /** * @return Border */ public function getBorder() { return $this->border; } /** * @param Border $border * @return Style */ public function setBorder(Border $border) { $this->shouldApplyBorder = true; $this->border = $border; $this->isEmpty = false; return $this; } /** * @return bool */ public function shouldApplyBorder() { return $this->shouldApplyBorder; } /** * @return bool */ public function isFontBold() { return $this->fontBold; } /** * @return Style */ public function setFontBold() { $this->fontBold = true; $this->hasSetFontBold = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontBold() { return $this->hasSetFontBold; } /** * @return bool */ public function isFontItalic() { return $this->fontItalic; } /** * @return Style */ public function setFontItalic() { $this->fontItalic = true; $this->hasSetFontItalic = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontItalic() { return $this->hasSetFontItalic; } /** * @return bool */ public function isFontUnderline() { return $this->fontUnderline; } /** * @return Style */ public function setFontUnderline() { $this->fontUnderline = true; $this->hasSetFontUnderline = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontUnderline() { return $this->hasSetFontUnderline; } /** * @return bool */ public function isFontStrikethrough() { return $this->fontStrikethrough; } /** * @return Style */ public function setFontStrikethrough() { $this->fontStrikethrough = true; $this->hasSetFontStrikethrough = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontStrikethrough() { return $this->hasSetFontStrikethrough; } /** * @return int */ public function getFontSize() { return $this->fontSize; } /** * @param int $fontSize Font size, in pixels * @return Style */ public function setFontSize($fontSize) { $this->fontSize = $fontSize; $this->hasSetFontSize = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontSize() { return $this->hasSetFontSize; } /** * @return string */ public function getFontColor() { return $this->fontColor; } /** * Sets the font color. * * @param string $fontColor ARGB color (@see Color) * @return Style */ public function setFontColor($fontColor) { $this->fontColor = $fontColor; $this->hasSetFontColor = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontColor() { return $this->hasSetFontColor; } /** * @return string */ public function getFontName() { return $this->fontName; } /** * @param string $fontName Name of the font to use * @return Style */ public function setFontName($fontName) { $this->fontName = $fontName; $this->hasSetFontName = true; $this->shouldApplyFont = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetFontName() { return $this->hasSetFontName; } /** * @return string */ public function getCellAlignment() { return $this->cellAlignment; } /** * @param string $cellAlignment The cell alignment * * @return Style */ public function setCellAlignment($cellAlignment) { $this->cellAlignment = $cellAlignment; $this->hasSetCellAlignment = true; $this->shouldApplyCellAlignment = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetCellAlignment() { return $this->hasSetCellAlignment; } /** * @return bool Whether specific cell alignment should be applied */ public function shouldApplyCellAlignment() { return $this->shouldApplyCellAlignment; } /** * @return bool */ public function shouldWrapText() { return $this->shouldWrapText; } /** * @param bool $shouldWrap Should the text be wrapped * @return Style */ public function setShouldWrapText($shouldWrap = true) { $this->shouldWrapText = $shouldWrap; $this->hasSetWrapText = true; $this->isEmpty = false; return $this; } /** * @return bool */ public function hasSetWrapText() { return $this->hasSetWrapText; } /** * @return bool Whether specific font properties should be applied */ public function shouldApplyFont() { return $this->shouldApplyFont; } /** * Sets the background color * @param string $color ARGB color (@see Color) * @return Style */ public function setBackgroundColor($color) { $this->hasSetBackgroundColor = true; $this->backgroundColor = $color; $this->isEmpty = false; return $this; } /** * @return string */ public function getBackgroundColor() { return $this->backgroundColor; } /** * @return bool Whether the background color should be applied */ public function shouldApplyBackgroundColor() { return $this->hasSetBackgroundColor; } /** * Sets format * @param string $format * @return Style */ public function setFormat($format) { $this->hasSetFormat = true; $this->format = $format; $this->isEmpty = false; return $this; } /** * @return string */ public function getFormat() { return $this->format; } /** * @return bool Whether format should be applied */ public function shouldApplyFormat() { return $this->hasSetFormat; } /** * @return bool */ public function isRegistered() : bool { return $this->isRegistered; } public function markAsRegistered(?int $id) : void { $this->setId($id); $this->isRegistered = true; } public function unmarkAsRegistered() : void { $this->setId(0); $this->isRegistered = false; } public function isEmpty() : bool { return $this->isEmpty; } }