1 | <?php |
||
12 | class Configuration |
||
13 | { |
||
14 | /** @var EntityMetadataFactory */ |
||
15 | private $metadataFactory; |
||
16 | /** @var MappingDriver */ |
||
17 | private $driver; |
||
18 | /** @var ClientRegistryInterface */ |
||
19 | private $clientRegistry; |
||
20 | /** @var ApiFactoryRegistryInterface */ |
||
21 | private $factoryRegistry; |
||
22 | /** @var string */ |
||
23 | private $proxyDir; |
||
24 | /** @var string */ |
||
25 | private $proxyNamespace; |
||
26 | /** @var bool */ |
||
27 | private $autogenerateProxies = true; |
||
28 | /** @var TypeRegistryInterface */ |
||
29 | private $typeRegistry; |
||
30 | /** @var array */ |
||
31 | private $cacheConfiguration = []; |
||
32 | /** @var CacheItemPoolInterface */ |
||
33 | private $apiCache; |
||
34 | /** @var LoggerInterface */ |
||
35 | private $apiCacheLogger; |
||
36 | /** @var CacheConfiguration[] */ |
||
37 | private $cacheConfigurationCache = []; |
||
38 | |||
39 | /** |
||
40 | * Configuration constructor. |
||
41 | */ |
||
42 | 18 | public function __construct() |
|
46 | |||
47 | /** |
||
48 | * @return ClientRegistryInterface |
||
49 | */ |
||
50 | 18 | public function getClientRegistry() |
|
51 | { |
||
52 | 18 | return $this->clientRegistry; |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param ClientRegistryInterface $clientRegistry |
||
57 | */ |
||
58 | 18 | public function setClientRegistry($clientRegistry) |
|
59 | { |
||
60 | 18 | $this->clientRegistry = $clientRegistry; |
|
61 | 18 | } |
|
62 | |||
63 | /** |
||
64 | * @return ApiFactoryRegistryInterface |
||
65 | */ |
||
66 | 17 | public function getFactoryRegistry() |
|
67 | { |
||
68 | 17 | return $this->factoryRegistry; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @param ApiFactoryRegistryInterface $factoryRegistry |
||
73 | */ |
||
74 | 18 | public function setFactoryRegistry(ApiFactoryRegistryInterface $factoryRegistry) |
|
75 | { |
||
76 | 18 | $this->factoryRegistry = $factoryRegistry; |
|
77 | 18 | } |
|
78 | |||
79 | /** |
||
80 | * @return LoggerInterface |
||
81 | */ |
||
82 | 1 | public function getApiCacheLogger() |
|
86 | |||
87 | /** |
||
88 | * @param LoggerInterface $apiCacheLogger |
||
89 | */ |
||
90 | 1 | public function setApiCacheLogger($apiCacheLogger) |
|
94 | |||
95 | /** |
||
96 | * @return CacheItemPoolInterface |
||
97 | */ |
||
98 | 1 | public function getApiCache() |
|
102 | |||
103 | /** |
||
104 | * @param CacheItemPoolInterface|null $apiCache |
||
105 | */ |
||
106 | 1 | public function setApiCache(CacheItemPoolInterface $apiCache = null) |
|
110 | |||
111 | /** |
||
112 | * Returns class cache configuration |
||
113 | * |
||
114 | * @param $class |
||
115 | * |
||
116 | * @return CacheConfiguration |
||
117 | */ |
||
118 | 17 | public function getCacheConfiguration($class) |
|
131 | |||
132 | /** |
||
133 | * @param string $class |
||
134 | * @param array $options |
||
135 | */ |
||
136 | 1 | public function setCacheConfiguration($class, array $options = null) |
|
144 | |||
145 | /** |
||
146 | * @return TypeRegistryInterface |
||
147 | */ |
||
148 | 17 | public function getTypeRegistry() |
|
152 | |||
153 | /** |
||
154 | * @param TypeRegistryInterface $typeRegistry |
||
155 | */ |
||
156 | 18 | public function setTypeRegistry(TypeRegistryInterface $typeRegistry) |
|
160 | |||
161 | /** |
||
162 | * @return string |
||
163 | */ |
||
164 | 18 | public function getProxyDir() |
|
168 | |||
169 | /** |
||
170 | * @param string $proxyDir |
||
171 | */ |
||
172 | 18 | public function setProxyDir($proxyDir) |
|
176 | |||
177 | /** |
||
178 | * @return string |
||
179 | */ |
||
180 | 18 | public function getProxyNamespace() |
|
184 | |||
185 | /** |
||
186 | * @param string $proxyNamespace |
||
187 | */ |
||
188 | 18 | public function setProxyNamespace($proxyNamespace) |
|
192 | |||
193 | /** |
||
194 | * @return boolean |
||
195 | */ |
||
196 | 18 | public function isAutogenerateProxies() |
|
200 | |||
201 | /** |
||
202 | * @param boolean $autogenerateProxies |
||
203 | */ |
||
204 | public function setAutogenerateProxies($autogenerateProxies) |
||
208 | |||
209 | /** |
||
210 | * @return MappingDriver |
||
211 | */ |
||
212 | 18 | public function getDriver() |
|
216 | |||
217 | /** |
||
218 | * @param MappingDriver $driver |
||
219 | */ |
||
220 | 18 | public function setDriver($driver) |
|
224 | |||
225 | /** |
||
226 | * @return EntityMetadataFactory |
||
227 | */ |
||
228 | 18 | public function getMetadataFactory() |
|
232 | |||
233 | /** |
||
234 | * @param string $metadataFactory |
||
235 | */ |
||
236 | 18 | public function setMetadataFactory($metadataFactory) |
|
240 | } |
||
241 |
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..