PHP Класс Neomerx\JsonApi\Encoder\Handlers\ReplyInterpreter

Наследование: implements Neomerx\JsonApi\Contracts\Encoder\Handlers\ReplyInterpreterInterface, implements Psr\Log\LoggerAwareInterface, use trait Psr\Log\LoggerAwareTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Neomerx\JsonApi\Contracts\Document\DocumentInterface $document, Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface $parameterAnalyzer )
handle ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply )

Защищенные методы

Метод Описание
handleIncluded ( string $rootType, Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous )
handleRelationships ( string $rootType, Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous )

Приватные методы

Метод Описание
addRelationshipToData ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous ) : void
addRelationshipToIncluded ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous ) : void
addToData ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current ) : void
addToIncluded ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current ) : void
addToIncludedAndCheckIfParentIsTarget ( string $rootType, Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous ) : boolean
getIfTargets ( string $rootType, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous = null ) : bool[]
isRelationshipInFieldSet ( Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current, Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $previous ) : boolean If relationship from 'parent' to 'current' resource passes field set filter.
setResourceCompleted ( Neomerx\JsonApi\Contracts\Encoder\Stack\StackFrameReadOnlyInterface $current ) : void

Описание методов

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

public __construct ( Neomerx\JsonApi\Contracts\Document\DocumentInterface $document, Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface $parameterAnalyzer )
$document Neomerx\JsonApi\Contracts\Document\DocumentInterface
$parameterAnalyzer Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface

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

public handle ( Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface $reply )
$reply Neomerx\JsonApi\Contracts\Encoder\Parser\ParserReplyInterface

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

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

protected handleRelationships ( 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