Property | Type | Description | |
---|---|---|---|
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | ||
$response | Psr\Http\Message\ResponseInterface | ||
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface |
Method | Description | |
---|---|---|
__construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer ) |
Method | Description | |
---|---|---|
getDocumentMetaResponse ( |
||
getDocumentRelationshipMetaResponse ( string $relationshipName, |
||
getDocumentRelationshipResponse ( string $relationshipName, |
||
getDocumentResourceResponse ( |
||
getErrorResponse ( Psr\Http\Message\ResponseInterface $response, |
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 |
protected getDocumentMetaResponse ( |
||
$document | ||
$domainObject | mixed | |
$statusCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
protected getDocumentRelationshipMetaResponse ( string $relationshipName, |
||
$relationshipName | string | |
$document | ||
$domainObject | mixed | |
$statusCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
protected getDocumentRelationshipResponse ( string $relationshipName, |
||
$relationshipName | string | |
$document | ||
$domainObject | mixed | |
$statusCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
protected getDocumentResourceResponse ( |
||
$document | ||
$domainObject | mixed | |
$statusCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
protected getErrorResponse ( Psr\Http\Message\ResponseInterface $response, |
||
$response | Psr\Http\Message\ResponseInterface | |
$document | ||
$errors | array | |
$statusCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface | $response |
protected ExceptionFactoryInterface,WoohooLabs\Yin\JsonApi\Exception $exceptionFactory | ||
return | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
protected RequestInterface,WoohooLabs\Yin\JsonApi\Request $request | ||
return | WoohooLabs\Yin\JsonApi\Request\RequestInterface |
protected ResponseInterface,Psr\Http\Message $response | ||
return | Psr\Http\Message\ResponseInterface |