Neomerx\JsonApi\Encoder\Parser\ParserManager::getIncludeRelationships PHP Метод

getIncludeRelationships() публичный Метод

public getIncludeRelationships ( Neomerx\JsonApi\Contracts\Encoder\Stack\StackReadOnlyInterface $stack )
$stack Neomerx\JsonApi\Contracts\Encoder\Stack\StackReadOnlyInterface
    public function getIncludeRelationships(StackReadOnlyInterface $stack)
    {
        $currentPath = $stack->end()->getPath();
        $currentRootType = $stack->root()->getResource()->getType();
        $includePaths = $this->parameterAnalyzer->getIncludeRelationships($currentPath, $currentRootType);
        return $includePaths;
    }