original_string: public function execute() {
          $statement = $this->buildStatement();
          $result = $this->getDataSource()->query($statement, $this->getBindValues());
  
          if ($result) {
              $collection = new Collection($this->getMapper()->getClass(), $result, $this->getMapper());
          } else {
              $collection = new Collection($this->getMapper()->getClass(), array(), $this->getMapper());
          }
          return $collection;
      }
code: public function execute() {
          $statement = $this->buildStatement();
          $result = $this->getDataSource()->query($statement, $this->getBindValues());
  
          if ($result) {
              $collection = new Collection($this->getMapper()->getClass(), $result, $this->getMapper());
          } else {
              $collection = new Collection($this->getMapper()->getClass(), array(), $this->getMapper());
          }
          return $collection;
      }
code_tokens: public function execute ( ) { $ statement = $ this -> buildStatement ( ) ; $ result = $ this -> getDataSource ( ) -> query ( $ statement , $ this -> getBindValues ( ) ) ; if ( $ result ) { $ collection = new Collection ( $ this -> getMapper ( ) -> getClass ( ) , $ result , $ this -> getMapper ( ) ) ; } else { $ collection = new Collection ( $ this -> getMapper ( ) -> getClass ( ) , array ( ) , $ this -> getMapper ( ) ) ; } return $ collection ; }
docstring: Execute query and return a collection.
  @return Collection collection.
docstring_tokens: Execute query and return a collection .