original_string: public function from($from)
      {
          $pos = strpos($from, ' ');
          if (false !== $pos) {
              $this->table = substr($from, 0, $pos);
          } else {
              $this->table = $from;
          }
          $this->fullTable = $this->db->getTable($this->table);
          return $this->add('from', $this->db->getTable($from));
      }
code: public function from($from)
      {
          $pos = strpos($from, ' ');
          if (false !== $pos) {
              $this->table = substr($from, 0, $pos);
          } else {
              $this->table = $from;
          }
          $this->fullTable = $this->db->getTable($this->table);
          return $this->add('from', $this->db->getTable($from));
      }
code_tokens: public function from ( $ from ) { $ pos = strpos ( $ from , ' ' ) ; if ( false !== $ pos ) { $ this -> table = substr ( $ from , 0 , $ pos ) ; } else { $ this -> table = $ from ; } $ this -> fullTable = $ this -> db -> getTable ( $ this -> table ) ; return $ this -> add ( 'from' , $ this -> db -> getTable ( $ from ) ) ; }
docstring: Sets table for FROM query
  
  @param string $from The table
  @return $this
docstring_tokens: Sets table for FROM query