From 7c854245fb050d9a9ec3d61a89fee39a129a014a Mon Sep 17 00:00:00 2001 From: alexisparron Date: Wed, 5 Jul 2017 13:54:00 +0200 Subject: [PATCH] Changed comments --- src/Spout/Reader/XLSX/Sheet.php | 4 ++-- src/Spout/Writer/Common/Sheet.php | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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;