setRow() public method

Sets a specific row in the table.
public setRow ( integer $index, array $row ) : static
$index integer The row index.
$row array An array of data cells.
return static The current instance.
Beispiel #1
0
 /**
  * @expectedException \LogicException
  */
 public function testSetRowFailsIfMissingCells()
 {
     $table = new Table();
     $table->setHeaderRow(array('a', 'b', 'c'));
     $table->setRow(0, array('a', 'b'));
 }