WoohooLabs\Yin\JsonApi\Response\AbstractResponder::__construct PHP Метод

__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 )
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$response Psr\Http\Message\ResponseInterface
$exceptionFactory WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
$serializer WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface
    public function __construct(RequestInterface $request, ResponseInterface $response, ExceptionFactoryInterface $exceptionFactory, SerializerInterface $serializer)
    {
        $this->request = $request;
        $this->response = $response;
        $this->exceptionFactory = $exceptionFactory;
        $this->serializer = $serializer;
    }

Usage Example

Пример #1
0
 /**
  * @param \WoohooLabs\Yin\JsonApi\Request\RequestInterface $request
  * @param \Psr\Http\Message\ResponseInterface $response
  * @param \WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory
  * @param string $relationshipName
  */
 public function __construct(RequestInterface $request, ResponseInterface $response, ExceptionFactoryInterface $exceptionFactory, $relationshipName)
 {
     parent::__construct($request, $response, $exceptionFactory);
     $this->relationshipName = $relationshipName;
 }
All Usage Examples Of WoohooLabs\Yin\JsonApi\Response\AbstractResponder::__construct