메소드 | 설명 | |
---|---|---|
doHydrateRelationship ( mixed $domainObject, string $relationshipName, callable $hydrator, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, array | null $relationshipData, array | null $data ) : mixed | ||
getAcceptedType ( ) : string | array | Determines which resource type or types can be accepted by the hydrator. | |
getArgumentTypeHintFromCallable ( callable $callable ) : string | null | ||
getAttributeHydrator ( mixed $domainObject ) : callable[] | Provides the attribute hydrators. | |
getRelationshipHydrator ( mixed $domainObject ) : callable[] | Provides the relationship hydrators. | |
getRelationshipHydratorResult ( string $relationshipName, callable $hydrator, mixed $domainObject, |
||
getRelationshipType ( object | string | null $object ) : string | null | ||
hydrateAttributes ( mixed $domainObject, array $data ) : mixed | ||
hydrateRelationships ( mixed $domainObject, array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) : mixed | ||
validateType ( array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) |
메소드 | 설명 | |
---|---|---|
createRelationship ( array | null $relationship, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) : |
||
isAssociativeArray ( array $array ) : boolean |
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 getAcceptedType ( ) : string | array | ||
리턴 | string | array |
abstract protected getAttributeHydrator ( mixed $domainObject ) : callable[] | ||
$domainObject | mixed | |
리턴 | callable[] |
abstract protected getRelationshipHydrator ( mixed $domainObject ) : callable[] | ||
$domainObject | mixed | |
리턴 | callable[] |
protected getRelationshipHydratorResult ( string $relationshipName, callable $hydrator, mixed $domainObject, |
||
$relationshipName | string | |
$hydrator | callable | |
$domainObject | mixed | |
$relationshipObject | ||
$data | array | null | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | |
리턴 | mixed |
protected validateType ( array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
$data | array | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |