1 | <?php |
||
20 | class ProxyManager |
||
21 | { |
||
22 | /** @var array */ |
||
23 | protected $services = []; |
||
24 | |||
25 | /** |
||
26 | * Add services ProxyModel |
||
27 | * |
||
28 | * @param ProxyModel $services Injected by Compiler |
||
29 | * @return void |
||
30 | */ |
||
31 | public function addServices($services) |
||
35 | |||
36 | /** |
||
37 | * Get available proxy's |
||
38 | * |
||
39 | * @return array |
||
|
|||
40 | */ |
||
41 | public function getServices() |
||
47 | |||
48 | /** |
||
49 | * @param string $client Name of the Client |
||
50 | * @return ProxyModel |
||
51 | * @throws ProxyExceptionListener |
||
52 | */ |
||
53 | public function getService($client) |
||
60 | } |
||
61 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.