1 | <?php |
||
20 | class Configuration |
||
21 | { |
||
22 | /** |
||
23 | * Cache for structures information |
||
24 | * |
||
25 | * @var Cache |
||
26 | */ |
||
27 | private $cache; |
||
28 | /** |
||
29 | * Namespaces map for structure classes |
||
30 | * |
||
31 | * @var NamespacesMap |
||
32 | */ |
||
33 | private $structNsMap; |
||
34 | /** |
||
35 | * Namespaces map for property classes |
||
36 | * |
||
37 | * @var NamespacesMap |
||
38 | */ |
||
39 | private $propertyNsMap; |
||
40 | /** |
||
41 | * Structures metadata manager |
||
42 | * |
||
43 | * @var MetadataManagerInterface |
||
44 | */ |
||
45 | private $metadataManager; |
||
46 | /** |
||
47 | * Structures metadata parser |
||
48 | * |
||
49 | * @var MetadataParserInterface |
||
50 | */ |
||
51 | private $metadataParser; |
||
52 | /** |
||
53 | * Structures storage manager |
||
54 | * |
||
55 | * @var StorageInterface |
||
56 | */ |
||
57 | private $storage; |
||
58 | /** |
||
59 | * Backend for structures storage |
||
60 | * |
||
61 | * @var BackendInterface |
||
62 | */ |
||
63 | private $storageBackend; |
||
64 | |||
65 | /** |
||
66 | * Get cache for structures information |
||
67 | * |
||
68 | * @return Cache |
||
69 | */ |
||
70 | 184 | public function getCache() |
|
77 | |||
78 | /** |
||
79 | * Set cache for structures information |
||
80 | * |
||
81 | * @param Cache $cache |
||
82 | * @return $this |
||
83 | */ |
||
84 | public function setCache(Cache $cache) |
||
89 | |||
90 | /** |
||
91 | * Get namespaces map for structure classes |
||
92 | * |
||
93 | * @return NamespacesMap |
||
94 | * @throws \InvalidArgumentException |
||
95 | */ |
||
96 | 198 | public function getStructNamespacesMap() |
|
104 | |||
105 | /** |
||
106 | * Get namespaces map for property classes |
||
107 | * |
||
108 | * @return NamespacesMap |
||
109 | * @throws \InvalidArgumentException |
||
110 | */ |
||
111 | 194 | public function getPropertyNamespacesMap() |
|
119 | |||
120 | /** |
||
121 | * Get structures metadata manager |
||
122 | * |
||
123 | * @return MetadataManagerInterface |
||
124 | */ |
||
125 | 176 | public function getMetadataManager() |
|
132 | |||
133 | /** |
||
134 | * Set structures metadata manager |
||
135 | * |
||
136 | * @param MetadataManagerInterface $manager |
||
137 | * @return $this |
||
138 | */ |
||
139 | 1 | public function setMetadataManager(MetadataManagerInterface $manager) |
|
144 | |||
145 | /** |
||
146 | * Get structures metadata parser |
||
147 | * |
||
148 | * @return MetadataParserInterface |
||
149 | */ |
||
150 | 182 | public function getMetadataParser() |
|
157 | |||
158 | /** |
||
159 | * Set structures metadata parser |
||
160 | * |
||
161 | * @param MetadataParserInterface $parser |
||
162 | * @return $this |
||
163 | */ |
||
164 | public function setMetadataParser(MetadataParserInterface $parser) |
||
169 | |||
170 | /** |
||
171 | * Get storage container |
||
172 | * |
||
173 | * @return StorageInterface |
||
174 | */ |
||
175 | 78 | public function getStorage() |
|
182 | |||
183 | /** |
||
184 | * Set storage container |
||
185 | * |
||
186 | * @param StorageInterface $storage |
||
187 | * @return $this |
||
188 | */ |
||
189 | 1 | public function setStorage(StorageInterface $storage) |
|
194 | |||
195 | /** |
||
196 | * Get backend for structures storage |
||
197 | * |
||
198 | * @return BackendInterface |
||
199 | */ |
||
200 | 81 | public function getStorageBackend() |
|
207 | |||
208 | /** |
||
209 | * Set backend for structures storage |
||
210 | * |
||
211 | * @param BackendInterface $backend |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setStorageBackend(BackendInterface $backend) |
||
219 | } |
||
220 |