Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class ArgumentResolverContext implements ArgumentResolverContextInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Request |
||
23 | */ |
||
24 | private $request; |
||
25 | |||
26 | /** |
||
27 | * @var ParameterBag |
||
28 | */ |
||
29 | private $attributes; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $controllerName; |
||
35 | |||
36 | /** |
||
37 | * @param Request|null $request |
||
38 | * @param ParameterBag $attributes |
||
39 | * @param string $controllerName |
||
40 | */ |
||
41 | 8 | public function __construct(ParameterBag $attributes, $controllerName, Request $request = null) |
|
46 | 8 | } |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 3 | public function getRequest() |
|
52 | { |
||
53 | 3 | return $this->request; |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 3 | public function getAttributes() |
|
60 | { |
||
61 | 3 | return $this->attributes; |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 3 | public function getControllerName() |
|
70 | } |
||
71 | } |
||
72 |