Property | Type | Description | |
---|---|---|---|
$domainObject | mixed |
Method | Description | |
---|---|---|
getMetaResponse ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | Returns a response with a status code of $responseCode, only containing meta information (without the "data" and the "included" sections) about the document, assembled based on the $domainObject. You can also pass additional meta information to the document in the $additionalMeta argument. | |
getRelationshipResponse ( string $relationshipName, WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | Returns a response with a status code of $responseCode, containing the $relationshipName relationship object as the primary data, assembled based on the $domainObject. You can also pass additional meta information to the document in the $additionalMeta argument. | |
getResponse ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | Returns a response with a status code of $responseCode, containing all the provided sections of the document, assembled based on the $domainObject. You can also pass additional meta information for the document in the $additionalMeta argument. |
Method | Description | |
---|---|---|
createData ( ) : WoohooLabs\Yin\JsonApi\Schema\Data\DataInterface | ||
fillData ( |
Fills the transformation data based on the "domainObject" property. | |
getRelationshipContent ( string $relationshipName, |
Returns a response content whose primary data is a relationship object with $relationshipName name. You can also pass additional meta information for the document in the $additionalMeta argument. | |
transformContent ( |
||
transformRelationshipContent ( string $relationshipName, |
Method | Description | |
---|---|---|
initializeDocument ( mixed $domainObject ) |
abstract protected createData ( ) : WoohooLabs\Yin\JsonApi\Schema\Data\DataInterface | ||
return | WoohooLabs\Yin\JsonApi\Schema\Data\DataInterface |
abstract protected fillData ( |
||
$transformation |
public getMetaResponse ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface | |
$domainObject | mixed | |
$responseCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
public getRelationshipResponse ( string $relationshipName, WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | ||
$relationshipName | string | |
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface | |
$domainObject | mixed | |
$responseCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
public getResponse ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, mixed $domainObject, integer $responseCode, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface | |
$domainObject | mixed | |
$responseCode | integer | |
$additionalMeta | array | |
return | Psr\Http\Message\ResponseInterface |
protected transformContent ( |
||
$transformation | ||
$additionalMeta | array | |
return | array |