| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class RequestManager implements RequestManagerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var DeserializerInterface |
||
| 15 | */ |
||
| 16 | private $deserializer; |
||
| 17 | |||
| 18 | public function __construct(DeserializerInterface $deserializer) |
||
| 19 | { |
||
| 20 | $this->deserializer = $deserializer; |
||
| 21 | 2 | } |
|
| 22 | |||
| 23 | 2 | /** |
|
| 24 | 2 | * @param object|string $object |
|
| 25 | * |
||
| 26 | * @return object |
||
| 27 | */ |
||
| 28 | public function getDataFromRequestQuery( |
||
| 29 | ServerRequestInterface $request, |
||
| 30 | $object, |
||
| 31 | DenormalizerContextInterface $context = null |
||
| 32 | ) { |
||
| 33 | 1 | return $this->deserializer->denormalize($object, $request->getQueryParams(), $context); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param object|string $object |
||
| 38 | 1 | * |
|
| 39 | * @return object |
||
| 40 | */ |
||
| 41 | public function getDataFromRequestBody( |
||
| 48 | } |
||
| 49 | } |
||
| 50 |