1 | <?php namespace Limoncello\Application\Settings; |
||
29 | class CacheSettingsProvider implements CacheSettingsProviderInterface |
||
30 | { |
||
31 | /** Internal data index */ |
||
32 | const KEY_APPLICATION_CONFIGURATION = 0; |
||
33 | |||
34 | /** Internal data index */ |
||
35 | const KEY_CORE_DATA = self::KEY_APPLICATION_CONFIGURATION + 1; |
||
36 | |||
37 | /** Internal data index */ |
||
38 | const KEY_SETTINGS_MAP = self::KEY_CORE_DATA + 1; |
||
39 | |||
40 | /** Internal data index */ |
||
41 | const KEY_SETTINGS_DATA = self::KEY_SETTINGS_MAP + 1; |
||
42 | |||
43 | /** Internal data index */ |
||
44 | const KEY_AMBIGUOUS_MAP = self::KEY_SETTINGS_DATA + 1; |
||
45 | |||
46 | /** |
||
47 | * @var array |
||
48 | */ |
||
49 | private $appConfig = []; |
||
50 | |||
51 | /** |
||
52 | * @var array |
||
53 | */ |
||
54 | private $coreData = []; |
||
55 | |||
56 | /** |
||
57 | * @var array |
||
58 | */ |
||
59 | private $settingsMap = []; |
||
60 | |||
61 | /** |
||
62 | * @var array |
||
63 | */ |
||
64 | private $settingsData = []; |
||
65 | |||
66 | /** |
||
67 | * @var array |
||
68 | */ |
||
69 | private $ambiguousMap = []; |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | 3 | public function get(string $className): array |
|
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | 1 | public function getApplicationConfiguration(): array |
|
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | 2 | public function getCoreData(): array |
|
103 | |||
104 | /** |
||
105 | * @inheritdoc |
||
106 | */ |
||
107 | 3 | public function has(string $className): bool |
|
113 | |||
114 | /** |
||
115 | * @inheritdoc |
||
116 | */ |
||
117 | 1 | public function isAmbiguous(string $className): bool |
|
123 | |||
124 | /** |
||
125 | * @param ApplicationConfigurationInterface $appConfig |
||
126 | * @param CoreData $coreData |
||
127 | * @param InstanceSettingsProvider $provider |
||
128 | * |
||
129 | * @return self |
||
130 | * |
||
131 | * @throws ReflectionException |
||
132 | */ |
||
133 | 6 | public function setInstanceSettings( |
|
148 | |||
149 | /** |
||
150 | * @inheritdoc |
||
151 | */ |
||
152 | 2 | public function serialize(): array |
|
162 | |||
163 | /** |
||
164 | * @inheritdoc |
||
165 | */ |
||
166 | 6 | public function unserialize(array $serialized): void |
|
176 | } |
||
177 |