original_string: private function getRelationships(Item $item)
      {
          if ($include_params = $this->resource->getIncludeParams()) {
              $item->setIncludeParams($include_params);
  
              return $item->getIncluded();
          }
  
          return [];
      }
code: private function getRelationships(Item $item)
      {
          if ($include_params = $this->resource->getIncludeParams()) {
              $item->setIncludeParams($include_params);
  
              return $item->getIncluded();
          }
  
          return [];
      }
code_tokens: private function getRelationships ( Item $ item ) { if ( $ include_params = $ this -> resource -> getIncludeParams ( ) ) { $ item -> setIncludeParams ( $ include_params ) ; return $ item -> getIncluded ( ) ; } return [ ] ; }
docstring: Gets the related data for a resource item
  
  @param Item $item Resource item
  @return array|null Relationships data
docstring_tokens: Gets the related data for a resource item