original_string: public function getResultsAsObjects($classname)
      {
          $new = array();
          foreach ((array) $this->results as $result) {
              if (is_array($result))
                  $new[] = new $classname($result);
              else
                  $new[] = $result;
          }
          return $new;
      }
code: public function getResultsAsObjects($classname)
      {
          $new = array();
          foreach ((array) $this->results as $result) {
              if (is_array($result))
                  $new[] = new $classname($result);
              else
                  $new[] = $result;
          }
          return $new;
      }
code_tokens: public function getResultsAsObjects ( $ classname ) { $ new = array ( ) ; foreach ( ( array ) $ this -> results as $ result ) { if ( is_array ( $ result ) ) $ new [ ] = new $ classname ( $ result ) ; else $ new [ ] = $ result ; } return $ new ; }
docstring: Returns all the results as objects of the class specified
  
  @param string $classname The name of the class to return the objects as
  
  @return array An array of the results converted into the new class
docstring_tokens: Returns all the results as objects of the class specified