1 | <?php |
||
17 | class Pool |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $queries = []; |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $promises = []; |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $transformers = []; |
||
31 | /** |
||
32 | * @var CachePool |
||
33 | */ |
||
34 | private $cachePool = null; |
||
35 | /** |
||
36 | * @var Client |
||
37 | */ |
||
38 | protected $client = null; |
||
39 | |||
40 | /** |
||
41 | * let us keep reference to our client. |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function getClient() |
||
49 | |||
50 | /** |
||
51 | * Awaits all the requests attaching callbacks before. |
||
52 | * |
||
53 | * @return mixed |
||
54 | */ |
||
55 | public function unwrap() |
||
67 | |||
68 | /** |
||
69 | * @param $query |
||
70 | * |
||
71 | * @return $this |
||
72 | */ |
||
73 | public function addQuery($key, $query) |
||
79 | |||
80 | /** |
||
81 | * @param Promise $promise |
||
82 | */ |
||
83 | public function addPromise($name, Promise $promise) |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | private function flushPromises() |
||
101 | |||
102 | /** |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getTransformers() |
||
109 | |||
110 | /** |
||
111 | * Adds another transformer to collection of transformers. |
||
112 | * |
||
113 | * @param callable $transformer |
||
114 | * |
||
115 | * @return $this |
||
116 | */ |
||
117 | public function addTransformer(callable $transformer) |
||
123 | |||
124 | /** |
||
125 | * @param Promise $promise |
||
|
|||
126 | */ |
||
127 | public function attachTransforms(Promise $req) |
||
153 | |||
154 | /** |
||
155 | * |
||
156 | */ |
||
157 | public function getCachePool() |
||
161 | |||
162 | /** |
||
163 | * @param null $cachePool |
||
164 | */ |
||
165 | public function setCachePool($cachePool) |
||
171 | |||
172 | /** |
||
173 | * Let us set our client reference taken from transaction. |
||
174 | * |
||
175 | * @param $client |
||
176 | * |
||
177 | * @return RepositoryAbstract |
||
178 | */ |
||
179 | public function setClient(Client $client) |
||
185 | } |
||
186 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.