1 | <?php |
||
7 | class Manager |
||
8 | { |
||
9 | /** |
||
10 | * @var Manager |
||
11 | */ |
||
12 | private static $instance; |
||
13 | |||
14 | /** |
||
15 | * @var Interfaces\Configuration |
||
16 | */ |
||
17 | private $configuration; |
||
18 | |||
19 | /** |
||
20 | * @var ApiClient |
||
21 | */ |
||
22 | private $apiClient; |
||
23 | |||
24 | /** |
||
25 | * @var CommandBus |
||
26 | */ |
||
27 | private $commandBus; |
||
28 | |||
29 | /** |
||
30 | * @var \Context\Manager |
||
31 | */ |
||
32 | private $contextManager; |
||
33 | |||
34 | /** |
||
35 | * @var Interfaces\ServiceFactory |
||
36 | */ |
||
37 | private $serviceFactory; |
||
38 | |||
39 | /** |
||
40 | * @var \Psr\Log\LoggerInterface |
||
41 | */ |
||
42 | private $logger; |
||
43 | |||
44 | 8 | private function __construct() |
|
47 | |||
48 | /** |
||
49 | * @return void |
||
50 | */ |
||
51 | private function __clone() |
||
54 | |||
55 | /** |
||
56 | * @return Manager |
||
57 | */ |
||
58 | 8 | public static function getInstance() |
|
66 | |||
67 | /** |
||
68 | * @return Interfaces\Configuration |
||
69 | */ |
||
70 | 2 | public function getConfiguration() |
|
74 | |||
75 | /** |
||
76 | * @param Interfaces\Configuration $configuration |
||
77 | * @return Manager |
||
78 | */ |
||
79 | 2 | public function setConfiguration(Interfaces\Configuration $configuration) |
|
84 | |||
85 | /** |
||
86 | * @return ApiClient |
||
87 | */ |
||
88 | 1 | public function getApiClient() |
|
98 | |||
99 | /** |
||
100 | * @param \Psr\Log\LoggerInterface |
||
101 | * @return Manager |
||
102 | */ |
||
103 | 1 | public function setLogger(\Psr\Log\LoggerInterface $logger) |
|
108 | |||
109 | /** |
||
110 | * @return \Psr\Log\LoggerInterface |
||
111 | */ |
||
112 | 1 | public function getLogger() |
|
116 | |||
117 | /** |
||
118 | * @param ApiClient $apiClient |
||
119 | * @return Manager |
||
120 | */ |
||
121 | 1 | public function setApiClient(ApiClient $apiClient) |
|
126 | |||
127 | /** |
||
128 | * @return CommandBus |
||
129 | */ |
||
130 | 1 | public function getCommandBus() |
|
138 | |||
139 | /** |
||
140 | * @param string name |
||
141 | * @param CommandBus $commandBus |
||
142 | * @return Manager |
||
143 | */ |
||
144 | 1 | public function setCommandBus(CommandBus $commandBus) |
|
149 | |||
150 | /** |
||
151 | * @return bool |
||
152 | */ |
||
153 | 1 | public function isEnabled() |
|
157 | |||
158 | /** |
||
159 | * @return void |
||
160 | */ |
||
161 | 1 | public function getContextManager() |
|
165 | |||
166 | /** |
||
167 | * Set a new context manager |
||
168 | * |
||
169 | * @param ContextManager $contextManager |
||
170 | * @return Manager |
||
171 | */ |
||
172 | 1 | public function setContextManager(ContextManager $contextManager) |
|
177 | |||
178 | /** |
||
179 | * @return Interfaces\ServiceFactory |
||
180 | */ |
||
181 | 1 | public function getServiceFactory() |
|
185 | |||
186 | /** |
||
187 | * @return Manager |
||
188 | */ |
||
189 | 1 | public function setServiceFactory(Interfaces\ServiceFactory $serviceFactory) |
|
194 | |||
195 | /** |
||
196 | * Resets the static variable that contains the instance, |
||
197 | * for test purposes |
||
198 | * |
||
199 | * @return void |
||
200 | */ |
||
201 | 8 | public function tearDown() |
|
205 | } |
||
206 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..