Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | private function assertRequiredParamIsPresent(string $paramName, Request $request): void |
||
40 | { |
||
41 | if (!$request->attributes->has($paramName)) { |
||
42 | throw ParamMapperException::noParamFound($paramName); |
||
43 | } |
||
44 | |||
45 | if ($request->attributes->get($paramName) === null) { |
||
46 | throw ParamMapperException::paramEmpty($paramName); |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |