Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
34 | public function __construct(SerializerInterface $serializer, SerializeFormatResolver $requestFormatResolver, ResponseFactory $responseFactory) |
||
35 | { |
||
36 | if (!$serializer instanceof DecoderInterface) { |
||
37 | throw new InvalidArgumentException(sprintf('The serializer injected into %s should implement %s', __CLASS__, DecoderInterface::class)); |
||
38 | } |
||
39 | $this->serializer = $serializer; |
||
40 | $this->requestFormatResolver = $requestFormatResolver; |
||
41 | $this->responseFactory = $responseFactory; |
||
42 | } |
||
44 |