프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$domainObject | mixed |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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, |
메소드 | 설명 | |
---|---|---|
initializeDocument ( mixed $domainObject ) |
abstract protected createData ( ) : WoohooLabs\Yin\JsonApi\Schema\Data\DataInterface | ||
리턴 | 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 | |
리턴 | 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 | |
리턴 | 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 | |
리턴 | Psr\Http\Message\ResponseInterface |
protected transformContent ( |
||
$transformation | ||
$additionalMeta | array | |
리턴 | array |