Neomerx\JsonApi\Encoder\Handlers\ReplyInterpreter::handleIncluded PHP Метод

handleIncluded() защищенный Метод

protected handleIncluded ( string $rootType, Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous )
$rootType string
$reply Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface
$current Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface
$previous Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface
    protected function handleIncluded($rootType, ParserReplyInterface $reply, Frame $current, Frame $previous)
    {
        if ($this->addToIncludedAndCheckIfParentIsTarget($rootType, $reply, $current, $previous) === true && $this->isRelationshipInFieldSet($current, $previous) === true) {
            $this->addRelationshipToIncluded($reply, $current, $previous);
        }
    }