public static function addRows($data, $rowAttributes=null)
    {
         foreach ($data as $key => $row) {

            self::addRow($row, $rowAttributes);
        }

        return new static();
    }
public static function addRows($data, $rowAttributes=null)
    {
         foreach ($data as $key => $row) {

            self::addRow($row, $rowAttributes);
        }

        return new static();
    }
public static function addRows ( $ data , $ rowAttributes = null ) { foreach ( $ data as $ key => $ row ) { self :: addRow ( $ row , $ rowAttributes ) ; } return new static ( ) ; }
Add rows to the actived sheet of PhpSpreadsheet

@param array array of rowData for addRow()
@param array Row attributes refers to cell attributes
@return self
Add rows to the actived sheet of PhpSpreadsheet