original_string: public function setTable($table)
      {
          if (is_array($table)) {
              if (!isset($table['name'])) {
                  throw new \InvalidArgumentException('A name key is required when passing an array to setTable()');
              }
              $this->table = $table['name'];
          } else {
              $this->table = $table;
          }
      }
code: public function setTable($table)
      {
          if (is_array($table)) {
              if (!isset($table['name'])) {
                  throw new \InvalidArgumentException('A name key is required when passing an array to setTable()');
              }
              $this->table = $table['name'];
          } else {
              $this->table = $table;
          }
      }
code_tokens: public function setTable ( $ table ) { if ( is_array ( $ table ) ) { if ( ! isset ( $ table [ 'name' ] ) ) { throw new \ InvalidArgumentException ( 'A name key is required when passing an array to setTable()' ) ; } $ this -> table = $ table [ 'name' ] ; } else { $ this -> table = $ table ; } }
docstring: Sets the table this document is mapped to.
  
  @param array|string $table The table name.
  
  @throws \InvalidArgumentException
docstring_tokens: Sets the table this document is mapped to .