public function addRows($rows, Style $style = null)
    {
        if (!is_array($rows) && false === $rows instanceof \Traversable) {
            throw new \InvalidArgumentException('Expected array or traversable object as rows');
        }

        foreach ($rows as $row) {
            $this->addRow($row, $style);
        }
    }
public function addRows($rows, Style $style = null)
    {
        if (!is_array($rows) && false === $rows instanceof \Traversable) {
            throw new \InvalidArgumentException('Expected array or traversable object as rows');
        }

        foreach ($rows as $row) {
            $this->addRow($row, $style);
        }
    }
public function addRows ( $ rows , Style $ style = null ) { if ( ! is_array ( $ rows ) && false === $ rows instanceof \ Traversable ) { throw new \ InvalidArgumentException ( 'Expected array or traversable object as rows' ) ; } foreach ( $ rows as $ row ) { $ this -> addRow ( $ row , $ style ) ; } }
Add multiple rows at once.

@param array|\Traversable $rows
@param Style              $style
@throws \InvalidArgumentException
Add multiple rows at once .