original_string: public function getResource():ResourceInterface
      {
          $this->manager->parseIncludes($this->relations);
          $transformer = $this->resource->getTransformer();
  
          if ($transformer instanceof Transformer && $transformer->allRelationsAllowed()) {
              $this->resource->setTransformer($transformer->setRelations($this->manager->getRequestedIncludes()));
          }
  
          return $this->resource->setMeta($this->meta);
      }
code: public function getResource():ResourceInterface
      {
          $this->manager->parseIncludes($this->relations);
          $transformer = $this->resource->getTransformer();
  
          if ($transformer instanceof Transformer && $transformer->allRelationsAllowed()) {
              $this->resource->setTransformer($transformer->setRelations($this->manager->getRequestedIncludes()));
          }
  
          return $this->resource->setMeta($this->meta);
      }
code_tokens: public function getResource ( ) : ResourceInterface { $ this -> manager -> parseIncludes ( $ this -> relations ) ; $ transformer = $ this -> resource -> getTransformer ( ) ; if ( $ transformer instanceof Transformer && $ transformer -> allRelationsAllowed ( ) ) { $ this -> resource -> setTransformer ( $ transformer -> setRelations ( $ this -> manager -> getRequestedIncludes ( ) ) ) ; } return $ this -> resource -> setMeta ( $ this -> meta ) ; }
docstring: Get the Fractal resource instance.
  
  @return \League\Fractal\Resource\ResourceInterface
docstring_tokens: Get the Fractal resource instance .