| Total Complexity | 7 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RequestTransformer implements RequestTransformerInterface |
||
| 9 | { |
||
| 10 | public function __construct(protected SerializerInterface $serializer) |
||
| 11 | { |
||
| 12 | } |
||
| 13 | |||
| 14 | public function transform(Request $request) |
||
| 15 | { |
||
| 16 | $this->acceptJsonBody($request); |
||
| 17 | $this->setRequestFormat($request); |
||
| 18 | 6 | } |
|
| 19 | |||
| 20 | 6 | protected function acceptJsonBody(Request $request) |
|
| 25 | } |
||
| 26 | 4 | } |
|
| 27 | |||
| 28 | 4 | protected function setRequestFormat(Request $request) |
|
| 38 | 2 | } |
|
| 39 | } |
||
| 40 |