Property | Type | Description | |
---|---|---|---|
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | ||
$response | Psr\Http\Message\ResponseInterface |
Property | Type | Description | |
---|---|---|---|
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | ||
$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 = null, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer = null ) | ||
disableIncludes ( ) | Disables inclusion of related resources. | |
disableSorting ( ) | Disables sorting. | |
getExceptionFactory ( ) : WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | ||
getRequest ( ) : WoohooLabs\Yin\JsonApi\Request\RequestInterface | Returns the current JSON API request. | |
getResponse ( ) : Psr\Http\Message\ResponseInterface | ||
hydrate ( WoohooLabs\Yin\JsonApi\Hydrator\HydratorInterface $hydrator, $domainObject ) : mixed | ||
hydrateRelationship ( string $relationship, WoohooLabs\Yin\JsonApi\Hydrator\UpdateRelationshipHydratorInterface $hydrator, $domainObject ) : mixed | ||
respond ( ) : |
||
respondWithRelationship ( string $relationship ) : |
||
setExceptionFactory ( WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
setRequest ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) | ||
setResponse ( Psr\Http\Message\ResponseInterface $response ) |
public __construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory = null, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer = null ) | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface |
public disableIncludes ( ) |
public disableSorting ( ) |
public getExceptionFactory ( ) : WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | ||
return | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
public getRequest ( ) : WoohooLabs\Yin\JsonApi\Request\RequestInterface | ||
return | WoohooLabs\Yin\JsonApi\Request\RequestInterface |
public getResponse ( ) : Psr\Http\Message\ResponseInterface | ||
return | Psr\Http\Message\ResponseInterface |
public hydrateRelationship ( string $relationship, WoohooLabs\Yin\JsonApi\Hydrator\UpdateRelationshipHydratorInterface $hydrator, $domainObject ) : mixed | ||
$relationship | string | |
$hydrator | WoohooLabs\Yin\JsonApi\Hydrator\UpdateRelationshipHydratorInterface | |
$domainObject | ||
return | mixed |
public respond ( ) : |
||
return |
public respondWithRelationship ( string $relationship ) : |
||
$relationship | string | |
return |
public setExceptionFactory ( WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
public setRequest ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface |
public setResponse ( Psr\Http\Message\ResponseInterface $response ) | ||
$response | Psr\Http\Message\ResponseInterface |
protected ExceptionFactoryInterface,WoohooLabs\Yin\JsonApi\Exception $exceptionFactory | ||
return | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
public RequestInterface,WoohooLabs\Yin\JsonApi\Request $request | ||
return | WoohooLabs\Yin\JsonApi\Request\RequestInterface |
public ResponseInterface,Psr\Http\Message $response | ||
return | Psr\Http\Message\ResponseInterface |