added Row::getCellAtIndex method
This commit is contained in:
1 parent
21e0e9e6b1
commit
29cf6245a1
2 files changed
+22
-2
No files matched your search
@@ -54,8 +54,7 @@ class Row
|
||||
|
||||
/**
|
||||
* @param Cell $cell
|
||||
* @param mixed $cellIndex
|
||||
* @parma int $cellIndex
|
||||
* @param int $cellIndex
|
||||
* @return Row
|
||||
*/
|
||||
public function setCellAtIndex(Cell $cell, $cellIndex)
|
||||
@@ -65,6 +64,15 @@ class Row
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $cellIndex
|
||||
* @return Cell|null
|
||||
*/
|
||||
public function getCellAtIndex($cellIndex)
|
||||
{
|
||||
return isset($this->cells[$cellIndex]) ? $this->cells[$cellIndex] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Cell $cell
|
||||
* @return Row
|
||||
|
||||
Reference in new issue
Block a user