1 | <?php |
||
13 | class Configuration |
||
14 | { |
||
15 | /** @var EntityMetadataFactory */ |
||
16 | private $metadataFactory; |
||
17 | /** @var MappingDriver */ |
||
18 | private $driver; |
||
19 | /** @var ClientRegistryInterface */ |
||
20 | private $clientRegistry; |
||
21 | /** @var ApiFactoryRegistryInterface */ |
||
22 | private $factoryRegistry; |
||
23 | /** @var string */ |
||
24 | private $proxyDir; |
||
25 | /** @var string */ |
||
26 | private $proxyNamespace; |
||
27 | /** @var bool */ |
||
28 | private $autogenerateProxies = true; |
||
29 | /** @var TypeRegistryInterface */ |
||
30 | private $typeRegistry; |
||
31 | /** @var array */ |
||
32 | private $cacheConfiguration = []; |
||
33 | /** @var CacheItemPoolInterface */ |
||
34 | private $apiCache; |
||
35 | /** @var LoggerInterface */ |
||
36 | private $apiCacheLogger; |
||
37 | /** @var CacheConfigurationInterface[] */ |
||
38 | private $cacheConfigurationCache = []; |
||
39 | |||
40 | /** |
||
41 | * Configuration constructor. |
||
42 | */ |
||
43 | 28 | public function __construct() |
|
47 | |||
48 | /** |
||
49 | * @return ClientRegistryInterface |
||
50 | */ |
||
51 | 27 | public function getClientRegistry() |
|
55 | |||
56 | /** |
||
57 | * @param ClientRegistryInterface $clientRegistry |
||
58 | */ |
||
59 | 28 | public function setClientRegistry($clientRegistry) |
|
63 | |||
64 | /** |
||
65 | * @return ApiFactoryRegistryInterface |
||
66 | */ |
||
67 | 26 | public function getFactoryRegistry() |
|
71 | |||
72 | /** |
||
73 | * @param ApiFactoryRegistryInterface $factoryRegistry |
||
74 | */ |
||
75 | 28 | public function setFactoryRegistry(ApiFactoryRegistryInterface $factoryRegistry) |
|
79 | |||
80 | /** |
||
81 | * @return LoggerInterface |
||
82 | */ |
||
83 | 1 | public function getApiCacheLogger() |
|
87 | |||
88 | /** |
||
89 | * @param LoggerInterface $apiCacheLogger |
||
90 | */ |
||
91 | 1 | public function setApiCacheLogger(LoggerInterface $apiCacheLogger = null) |
|
92 | { |
||
93 | 1 | $this->apiCacheLogger = $apiCacheLogger ?: new NullLogger(); |
|
94 | 1 | } |
|
95 | |||
96 | /** |
||
97 | * @return CacheItemPoolInterface|null |
||
98 | */ |
||
99 | 1 | public function getApiCache() |
|
103 | |||
104 | /** |
||
105 | * @param CacheItemPoolInterface|null $apiCache |
||
106 | */ |
||
107 | 1 | public function setApiCache(CacheItemPoolInterface $apiCache = null) |
|
111 | |||
112 | /** |
||
113 | * Returns class cache configuration. |
||
114 | * |
||
115 | * Checks for parent classes recursively |
||
116 | * |
||
117 | * @param $class |
||
118 | * |
||
119 | * @return CacheConfigurationInterface |
||
120 | */ |
||
121 | 26 | public function getCacheConfiguration($class) |
|
148 | |||
149 | /** |
||
150 | * @param string $class |
||
151 | * @param array $options |
||
152 | */ |
||
153 | 1 | public function setCacheConfiguration($class, array $options = null) |
|
161 | |||
162 | 26 | public function hasCacheConfigurationFor($class) |
|
166 | |||
167 | /** |
||
168 | * |
||
169 | * |
||
170 | * @param string $class |
||
171 | * @param CacheConfigurationInterface $configuration |
||
172 | */ |
||
173 | public function setCacheConfigurationInstance($class, CacheConfigurationInterface $configuration) |
||
177 | |||
178 | /** |
||
179 | * @return TypeRegistryInterface |
||
180 | */ |
||
181 | 26 | public function getTypeRegistry() |
|
185 | |||
186 | /** |
||
187 | * @param TypeRegistryInterface $typeRegistry |
||
188 | */ |
||
189 | 28 | public function setTypeRegistry(TypeRegistryInterface $typeRegistry) |
|
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | 28 | public function getProxyDir() |
|
201 | |||
202 | /** |
||
203 | * @param string $proxyDir |
||
204 | */ |
||
205 | 28 | public function setProxyDir($proxyDir) |
|
209 | |||
210 | /** |
||
211 | * @return string |
||
212 | */ |
||
213 | 28 | public function getProxyNamespace() |
|
217 | |||
218 | /** |
||
219 | * @param string $proxyNamespace |
||
220 | */ |
||
221 | 28 | public function setProxyNamespace($proxyNamespace) |
|
225 | |||
226 | /** |
||
227 | * @return boolean |
||
228 | */ |
||
229 | 28 | public function isAutogenerateProxies() |
|
233 | |||
234 | /** |
||
235 | * @param boolean $autogenerateProxies |
||
236 | */ |
||
237 | public function setAutogenerateProxies($autogenerateProxies) |
||
241 | |||
242 | /** |
||
243 | * @return MappingDriver |
||
244 | */ |
||
245 | 28 | public function getDriver() |
|
249 | |||
250 | /** |
||
251 | * @param MappingDriver $driver |
||
252 | */ |
||
253 | 28 | public function setDriver($driver) |
|
257 | |||
258 | /** |
||
259 | * @return EntityMetadataFactory |
||
260 | */ |
||
261 | 28 | public function getMetadataFactory() |
|
265 | |||
266 | /** |
||
267 | * @param string $metadataFactory |
||
268 | */ |
||
269 | 28 | public function setMetadataFactory($metadataFactory) |
|
273 | } |
||
274 |
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..