PHP 클래스 WoohooLabs\Yin\JsonApi\Hydrator\AbstractHydrator

상속: implements WoohooLabs\Yin\JsonApi\Hydrator\HydratorInterface, implements WoohooLabs\Yin\JsonApi\Hydrator\UpdateRelationshipHydratorInterface, use trait HydratorTrait, use trait WoohooLabs\Yin\JsonApi\Hydrator\CreateHydratorTrait, use trait UpdateHydratorTrait
파일 보기 프로젝트 열기: woohoolabs/yin

공개 메소드들

메소드 설명
hydrate ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed Hydrates the domain object from the request based on the request method.
hydrateRelationship ( string $relationship, WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, mixed $domainObject ) : mixed

메소드 상세

hydrate() 공개 메소드

If the request method is POST then the domain object is hydrated as a create. If it is a PATCH request then the domain object is hydrated as an update.
public hydrate ( 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

hydrateRelationship() 공개 메소드

public hydrateRelationship ( 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