PHP 클래스 WoohooLabs\Yin\JsonApi\Response\AbstractResponder

파일 보기 프로젝트 열기: woohoolabs/yin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$exceptionFactory WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$response Psr\Http\Message\ResponseInterface
$serializer WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface

공개 메소드들

메소드 설명
__construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer )

보호된 메소드들

메소드 설명
getDocumentMetaResponse ( AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
getDocumentRelationshipMetaResponse ( string $relationshipName, AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
getDocumentRelationshipResponse ( string $relationshipName, AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
getDocumentResourceResponse ( AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
getErrorResponse ( Psr\Http\Message\ResponseInterface $response, AbstractErrorDocument $document, array $errors, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface

메소드 상세

__construct() 공개 메소드

public __construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer )
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$response Psr\Http\Message\ResponseInterface
$exceptionFactory WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
$serializer WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface

getDocumentMetaResponse() 보호된 메소드

protected getDocumentMetaResponse ( AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$statusCode integer
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

getDocumentRelationshipMetaResponse() 보호된 메소드

protected getDocumentRelationshipMetaResponse ( string $relationshipName, AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$relationshipName string
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$statusCode integer
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

getDocumentRelationshipResponse() 보호된 메소드

protected getDocumentRelationshipResponse ( string $relationshipName, AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$relationshipName string
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$statusCode integer
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

getDocumentResourceResponse() 보호된 메소드

protected getDocumentResourceResponse ( AbstractSuccessfulDocument $document, mixed $domainObject, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$statusCode integer
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

getErrorResponse() 보호된 메소드

protected getErrorResponse ( Psr\Http\Message\ResponseInterface $response, AbstractErrorDocument $document, array $errors, integer $statusCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$response Psr\Http\Message\ResponseInterface
$document WoohooLabs\Yin\JsonApi\Document\AbstractErrorDocument
$errors array
$statusCode integer
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface $response

프로퍼티 상세

$exceptionFactory 보호되어 있는 프로퍼티

protected ExceptionFactoryInterface,WoohooLabs\Yin\JsonApi\Exception $exceptionFactory
리턴 WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface

$request 보호되어 있는 프로퍼티

protected RequestInterface,WoohooLabs\Yin\JsonApi\Request $request
리턴 WoohooLabs\Yin\JsonApi\Request\RequestInterface

$response 보호되어 있는 프로퍼티

protected ResponseInterface,Psr\Http\Message $response
리턴 Psr\Http\Message\ResponseInterface

$serializer 보호되어 있는 프로퍼티

protected SerializerInterface,WoohooLabs\Yin\JsonApi\Serializer $serializer
리턴 WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface