1 | <?php |
||
17 | class ConfigManager implements ManagerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var IndexConfig[] |
||
21 | */ |
||
22 | private $indexes = []; |
||
23 | |||
24 | /** |
||
25 | * @param Source\SourceInterface[] $sources |
||
26 | */ |
||
27 | 11 | public function __construct(array $sources) |
|
33 | |||
34 | /** |
||
35 | * @param string $indexName |
||
36 | * |
||
37 | * @return IndexConfig |
||
38 | */ |
||
39 | 10 | public function getIndexConfiguration($indexName) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 2 | public function getIndexNames() |
|
52 | { |
||
53 | 2 | return array_keys($this->indexes); |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 2 | public function getTypeConfiguration($indexName, $typeName) |
|
70 | |||
71 | /** |
||
72 | * @param string $indexName |
||
73 | * |
||
74 | * @return bool |
||
75 | */ |
||
76 | 10 | public function hasIndexConfiguration($indexName) |
|
80 | } |
||
81 |