private function getRelationships(Item $item)
    {
        if ($include_params = $this->resource->getIncludeParams()) {
            $item->setIncludeParams($include_params);

            return $item->getIncluded();
        }

        return [];
    }
private function getRelationships(Item $item)
    {
        if ($include_params = $this->resource->getIncludeParams()) {
            $item->setIncludeParams($include_params);

            return $item->getIncluded();
        }

        return [];
    }
private function getRelationships ( Item $ item ) { if ( $ include_params = $ this -> resource -> getIncludeParams ( ) ) { $ item -> setIncludeParams ( $ include_params ) ; return $ item -> getIncluded ( ) ; } return [ ] ; }
Gets the related data for a resource item

@param Item $item Resource item
@return array|null Relationships data
Gets the related data for a resource item