Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | #[Immutable] |
||
14 | final class ConverterData |
||
15 | { |
||
16 | private const DEFAULT_CONTEXT = [AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true]; |
||
17 | |||
18 | private Request $request; |
||
19 | private ParamConverter $attribute; |
||
20 | |||
21 | 26 | public function __construct(Request $request, ParamConverter $attribute) |
|
25 | 26 | } |
|
26 | |||
27 | 1 | public function getRequest(): Request |
|
30 | } |
||
31 | |||
32 | 20 | public function getRequestParameters(): array |
|
33 | { |
||
34 | 20 | return $this->request->request->all(); |
|
35 | } |
||
36 | |||
37 | 20 | #[Pure] |
|
38 | public function getParameterClass(): ?string |
||
39 | { |
||
40 | 20 | return $this->attribute->getParameterClass(); |
|
41 | } |
||
42 | |||
43 | 17 | #[Pure] |
|
44 | public function isValidationNeeded(): bool |
||
45 | { |
||
46 | 17 | return $this->attribute->isValidationNeeded(); |
|
47 | } |
||
48 | |||
49 | 15 | #[Pure] |
|
53 | } |
||
54 | |||
55 | 17 | #[Pure] |
|
59 | } |
||
60 | } |
||
61 |