public function setRows($rows = [])
    {
        if (Arr::isAssoc($rows)) {
            foreach ($rows as $key => $item) {
                $this->rows[] = [$key, $item];
            }

            return $this;
        }

        $this->rows = $rows;

        return $this;
    }
public function setRows($rows = [])
    {
        if (Arr::isAssoc($rows)) {
            foreach ($rows as $key => $item) {
                $this->rows[] = [$key, $item];
            }

            return $this;
        }

        $this->rows = $rows;

        return $this;
    }
public function setRows ( $ rows = [ ] ) { if ( Arr :: isAssoc ( $ rows ) ) { foreach ( $ rows as $ key => $ item ) { $ this -> rows [ ] = [ $ key , $ item ] ; } return $ this ; } $ this -> rows = $ rows ; return $ this ; }
Set table rows.

@param array $rows

@return $this
Set table rows .