Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class RequestParser extends AbstractParser |
||
15 | { |
||
16 | /** |
||
17 | * @var Request |
||
18 | */ |
||
19 | protected $request; |
||
20 | |||
21 | /** |
||
22 | * RequestParser constructor. |
||
23 | * |
||
24 | * @param Request $request |
||
25 | */ |
||
26 | public function __construct(Request $request) |
||
27 | { |
||
28 | $this->request = $request; |
||
29 | |||
30 | $this->init(); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return array |
||
35 | */ |
||
36 | public function getAttributes(): array |
||
37 | { |
||
38 | return $this->request->toArray(); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return string|array|null |
||
43 | */ |
||
44 | public function getQueryValue() |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return Collection |
||
51 | */ |
||
52 | public function parse(): Collection |
||
57 | } |
||
58 | } |
||
59 |