original_string: public function setRows(array $rows)
      {
          if (isset($rows['_head'])) {
              $this->setHeading($rows['_head']);
              unset($rows['_head']);
          }
          
          if (!empty($rows)) {
              foreach($rows as $row) {
                  $this->setRow($row);
              }
          }
          
          return $this;
      }
code: public function setRows(array $rows)
      {
          if (isset($rows['_head'])) {
              $this->setHeading($rows['_head']);
              unset($rows['_head']);
          }
          
          if (!empty($rows)) {
              foreach($rows as $row) {
                  $this->setRow($row);
              }
          }
          
          return $this;
      }
code_tokens: public function setRows ( array $ rows ) { if ( isset ( $ rows [ '_head' ] ) ) { $ this -> setHeading ( $ rows [ '_head' ] ) ; unset ( $ rows [ '_head' ] ) ; } if ( ! empty ( $ rows ) ) { foreach ( $ rows as $ row ) { $ this -> setRow ( $ row ) ; } } return $ this ; }
docstring: Set several rows at once.  You can also set the heading
  by providing an array item with the key of "_head".
  
  @param array $rows
  @return \m\Html\Table
docstring_tokens: Set several rows at once . You can also set the heading by providing an array item with the key of _head .