PhpOffice\PhpPresentation\Shape\Table::getRow PHP Méthode

getRow() public méthode

Get row
public getRow ( integer $row, boolean $exceptionAsNull = false ) : PhpOffice\PhpPresentation\Shape\Table\Row
$row integer Row number
$exceptionAsNull boolean Return a null value instead of an exception?
Résultat PhpOffice\PhpPresentation\Shape\Table\Row
    public function getRow($row = 0, $exceptionAsNull = false)
    {
        if (!isset($this->rows[$row])) {
            if ($exceptionAsNull) {
                return null;
            }
            throw new \Exception('Row number out of bounds.');
        }
        return $this->rows[$row];
    }

Usage Example

Exemple #1
0
 /**
  * @expectedException \Exception
  * expectedExceptionMessage Row number out of bounds.
  */
 public function testGetRowException()
 {
     $object = new Table();
     $object->getRow();
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Table::getRow