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