메소드 | 설명 | |
---|---|---|
hydrateForRelationshipUpdate ( string $relationship, WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed | ||
hydrateForUpdate ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed | Hydrates the domain object from the updating request. |
메소드 | 설명 | |
---|---|---|
doHydrateRelationship ( mixed $domainObject, string $relationshipName, callable $hydrator, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, array | null $relationshipData, array | null $data ) : mixed | ||
getRelationshipHydrator ( mixed $domainObject ) : callable[] | Provides the relationship hydrators. | |
hydrateAttributes ( mixed $domainObject, array $data ) : mixed | ||
hydrateIdForUpdate ( mixed $domainObject, array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) : mixed | ||
hydrateRelationships ( mixed $domainObject, array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) : mixed | ||
setId ( mixed $domainObject, string $id ) : mixed | null | Sets the given ID for the domain object. | |
validateType ( array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) |
abstract protected doHydrateRelationship ( mixed $domainObject, string $relationshipName, callable $hydrator, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, array | null $relationshipData, array | null $data ) : mixed | ||
$domainObject | mixed | |
$relationshipName | string | |
$hydrator | callable | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$relationshipData | array | null | |
$data | array | null | |
리턴 | mixed |
abstract protected getRelationshipHydrator ( mixed $domainObject ) : callable[] | ||
$domainObject | mixed | |
리턴 | callable[] |
public hydrateForRelationshipUpdate ( string $relationship, WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed | ||
$relationship | string | |
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$domainObject | mixed | |
리턴 | mixed |
public hydrateForUpdate ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
$domainObject | mixed | |
리턴 | mixed |
abstract protected validateType ( array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
$data | array | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |