public addRowsWithStyle ( array $dataRows, |
||
$dataRows | array | Array of array containing data to be streamed. |
$style | Style to be applied to the rows. | |
return |
public function addRowsWithStyle(array $dataRows, $style)
{
if (!$style instanceof Style\Style) {
throw new InvalidArgumentException('The "$style" argument must be a Style instance and cannot be NULL.');
}
$this->setRowStyle($style);
$this->addRows($dataRows);
$this->resetRowStyleToDefault();
return $this;
}