Méthode | Description | |
---|---|---|
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 ) |
Méthode | Description | |
---|---|---|
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 | |
Résultat | mixed |
abstract protected getAcceptedType ( ) : string | array | ||
Résultat | string | array |
abstract protected getAttributeHydrator ( mixed $domainObject ) : callable[] | ||
$domainObject | mixed | |
Résultat | callable[] |
abstract protected getRelationshipHydrator ( mixed $domainObject ) : callable[] | ||
$domainObject | mixed | |
Résultat | 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 | |
Résultat | mixed |
protected validateType ( array $data, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
$data | array | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |