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; }