1 | <?php |
||
19 | class SettingSchemaRegistry implements SettingSchemaRegistryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Section[] |
||
23 | */ |
||
24 | private $schemas = []; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $types = [ |
||
30 | 'globals' => [], |
||
31 | 'owners' => [], |
||
32 | ]; |
||
33 | |||
34 | 9 | public function __construct(array $sections = []) |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 9 | public function add($section, array $data): void |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function get($section, $key): SettingSchema |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 4 | public function getSection($section): Section |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 3 | public function getGlobals(): array |
|
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | 4 | public function getOwners(): array |
|
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | 1 | public function getAll(): array |
|
98 | } |
||
99 |