diff --git a/src/Spout/Reader/XLSX/Sheet.php b/src/Spout/Reader/XLSX/Sheet.php index 2b35aad..33b57d8 100644 --- a/src/Spout/Reader/XLSX/Sheet.php +++ b/src/Spout/Reader/XLSX/Sheet.php @@ -24,7 +24,7 @@ class Sheet implements SheetInterface /** @var bool Whether the sheet was the active one */ protected $isActive; - /** @var bool Whether the sheet was visible or not */ + /** @var bool Whether the sheet is visible or not */ protected $isVisible; /** @@ -83,7 +83,7 @@ class Sheet implements SheetInterface /** * @api - * @return bool Whether the sheet was visible or not + * @return bool Whether the sheet is visible or not */ public function isVisible() { diff --git a/src/Spout/Writer/Common/Sheet.php b/src/Spout/Writer/Common/Sheet.php index 508d037..6c58ed1 100644 --- a/src/Spout/Writer/Common/Sheet.php +++ b/src/Spout/Writer/Common/Sheet.php @@ -33,7 +33,7 @@ class Sheet /** @var string Name of the sheet */ protected $name; - /** @var bool isVisible visibility of the sheet */ + /** @var bool Visibility of the sheet */ protected $isVisible; /** @var \Box\Spout\Common\Helper\StringHelper */ @@ -83,6 +83,11 @@ class Sheet return $this->isVisible; } + /** + * @api + * @param string $visibility Visibility of the sheet + * @return Sheet + */ public function setVisibility($visibility = true) { $this->isVisible = $visibility;