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