1 | <?php |
||
17 | class BasicConfig implements ConfigInterface |
||
18 | { |
||
19 | protected $defaultDataProviderClass = SimpleDataProvider::class; |
||
20 | protected $defaultDictionaryClass = SimpleDictionary::class; |
||
21 | protected $dictionaryConfig = []; |
||
22 | protected $defaultView = null; |
||
23 | protected $caches = []; |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getDefaultDataProviderClass(): string |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getDefaultDictionaryClass(): string |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getDictionaryConfig(): array |
||
48 | |||
49 | /** |
||
50 | * @param array $dictionaryConfig |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setDictionaryConfig(array $dictionaryConfig) |
||
59 | |||
60 | /** |
||
61 | * @return callable |
||
62 | */ |
||
63 | public function getDefaultView(): ?callable |
||
67 | |||
68 | /** |
||
69 | * @param callable $view |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setDefaultView(callable $view) |
||
78 | |||
79 | /** |
||
80 | * @param string $name |
||
81 | * @return null|CacheInterface |
||
82 | */ |
||
83 | public function getCache(string $name): ?CacheInterface |
||
87 | |||
88 | /** |
||
89 | * @param CacheInterface $cache |
||
90 | * @param string $name |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function addCache(CacheInterface $cache, string $name) |
||
99 | } |
||
100 |