original_string: public function getObject($query, $object)
      {
          $this->statement = $this->db->query($query);
          if ($this->statement) {
              $this->statement->setFetchMode(\PDO::FETCH_CLASS, $object);
              return $this->statement->fetch();
          }
          return false;
      }
code: public function getObject($query, $object)
      {
          $this->statement = $this->db->query($query);
          if ($this->statement) {
              $this->statement->setFetchMode(\PDO::FETCH_CLASS, $object);
              return $this->statement->fetch();
          }
          return false;
      }
code_tokens: public function getObject ( $ query , $ object ) { $ this -> statement = $ this -> db -> query ( $ query ) ; if ( $ this -> statement ) { $ this -> statement -> setFetchMode ( \ PDO :: FETCH_CLASS , $ object ) ; return $ this -> statement -> fetch ( ) ; } return false ; }
docstring: Get object by sql query
  
  @param string $query  Sql query
  @param string $object Object name
  
  @return array|bool
docstring_tokens: Get object by sql query