1 | <?php |
||
16 | final class NamedParameter implements NamedParameterInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Cache |
||
20 | */ |
||
21 | private $cache; |
||
22 | |||
23 | /** |
||
24 | * @var Reader |
||
25 | */ |
||
26 | private $reader; |
||
27 | |||
28 | /** |
||
29 | * @var InjectorInterface |
||
30 | */ |
||
31 | private $injector; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $globals; |
||
37 | |||
38 | 92 | public function __construct(Cache $cache, Reader $reader, InjectorInterface $injector, array $globals = []) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 59 | public function getParameters(array $callable, array $query) |
|
61 | |||
62 | /** |
||
63 | * Return evaluated parameters |
||
64 | * |
||
65 | * @param array $query caller value |
||
66 | * @param ParamInterface[] $names Param object[] ['varName' => ParamInterface] |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | 59 | private function evaluateParams(array $query, array $names) |
|
80 | |||
81 | /** |
||
82 | * Return named parameter information |
||
83 | * |
||
84 | * @param array $callable |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | 58 | private function getNamedParamMetas(array $callable) |
|
107 | |||
108 | /** |
||
109 | * Set "method injection" parameter |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | 58 | private function setAssistedParam(\ReflectionMethod $method) |
|
131 | |||
132 | /** |
||
133 | * Set AssistedParam objects |
||
134 | * |
||
135 | * null is used for Assisted interceptor |
||
136 | * |
||
137 | * @return array |
||
138 | */ |
||
139 | 1 | private function setAssistedAnnotation(array $names, Assisted $assisted) |
|
148 | } |
||
149 |