mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-29 16:56:03 +03:00
PSR-2
This commit is contained in:
parent
242f69bb29
commit
e250e466f9
@ -56,7 +56,8 @@ class PHPExcel_WorksheetIterator implements Iterator
|
|||||||
*
|
*
|
||||||
* @param PHPExcel $subject
|
* @param PHPExcel $subject
|
||||||
*/
|
*/
|
||||||
public function __construct(PHPExcel $subject = null) {
|
public function __construct(PHPExcel $subject = null)
|
||||||
|
{
|
||||||
// Set subject
|
// Set subject
|
||||||
$this->_subject = $subject;
|
$this->_subject = $subject;
|
||||||
}
|
}
|
||||||
@ -64,14 +65,16 @@ class PHPExcel_WorksheetIterator implements Iterator
|
|||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
public function __destruct() {
|
public function __destruct()
|
||||||
|
{
|
||||||
unset($this->_subject);
|
unset($this->_subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rewind iterator
|
* Rewind iterator
|
||||||
*/
|
*/
|
||||||
public function rewind() {
|
public function rewind()
|
||||||
|
{
|
||||||
$this->_position = 0;
|
$this->_position = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +83,8 @@ class PHPExcel_WorksheetIterator implements Iterator
|
|||||||
*
|
*
|
||||||
* @return PHPExcel_Worksheet
|
* @return PHPExcel_Worksheet
|
||||||
*/
|
*/
|
||||||
public function current() {
|
public function current()
|
||||||
|
{
|
||||||
return $this->_subject->getSheet($this->_position);
|
return $this->_subject->getSheet($this->_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,14 +93,16 @@ class PHPExcel_WorksheetIterator implements Iterator
|
|||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function key() {
|
public function key()
|
||||||
|
{
|
||||||
return $this->_position;
|
return $this->_position;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Next value
|
* Next value
|
||||||
*/
|
*/
|
||||||
public function next() {
|
public function next()
|
||||||
|
{
|
||||||
++$this->_position;
|
++$this->_position;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +111,8 @@ class PHPExcel_WorksheetIterator implements Iterator
|
|||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function valid() {
|
public function valid()
|
||||||
|
{
|
||||||
return $this->_position < $this->_subject->getSheetCount();
|
return $this->_position < $this->_subject->getSheetCount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user