PHP 클래스 WoohooLabs\Yin\JsonApi\Response\RelationshipResponder

상속: extends AbstractResponder
파일 보기 프로젝트 열기: woohoolabs/yin

보호된 프로퍼티들

프로퍼티 타입 설명
$relationshipName string

공개 메소드들

메소드 설명
__construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, string $relationshipName )
ok ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface Returns a "200 Ok" response, containing a document in the body with the relationship. You can also pass additional meta information for the document in the $additionalMeta argument.
okWithMeta ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface Returns a "200 Ok" response, containing a document with the relationship meta data in the body. You can also pass additional meta information for the document in the $additionalMeta argument.

메소드 상세

__construct() 공개 메소드

public __construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, string $relationshipName )
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$response Psr\Http\Message\ResponseInterface
$exceptionFactory WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
$serializer WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface
$relationshipName string

ok() 공개 메소드

Returns a "200 Ok" response, containing a document in the body with the relationship. You can also pass additional meta information for the document in the $additionalMeta argument.
public ok ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

okWithMeta() 공개 메소드

Returns a "200 Ok" response, containing a document with the relationship meta data in the body. You can also pass additional meta information for the document in the $additionalMeta argument.
public okWithMeta ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface
$document WoohooLabs\Yin\JsonApi\Document\AbstractSuccessfulDocument
$domainObject mixed
$additionalMeta array
리턴 Psr\Http\Message\ResponseInterface

프로퍼티 상세

$relationshipName 보호되어 있는 프로퍼티

protected string $relationshipName
리턴 string