original_string: public function transform()
      {
          if( ! $this->transformer) {
              return [];
          }
  
          $presentation = $this->transformer->transform($this->resource);
  
          return $this->transformToArray($presentation);
      }
code: public function transform()
      {
          if( ! $this->transformer) {
              return [];
          }
  
          $presentation = $this->transformer->transform($this->resource);
  
          return $this->transformToArray($presentation);
      }
code_tokens: public function transform ( ) { if ( ! $ this -> transformer ) { return [ ] ; } $ presentation = $ this -> transformer -> transform ( $ this -> resource ) ; return $ this -> transformToArray ( $ presentation ) ; }
docstring: Present the item using a transformer.
  
  @return array
docstring_tokens: Present the item using a transformer .