1 | <?php |
||
15 | class ConfigurationHelper |
||
16 | { |
||
17 | /** |
||
18 | * @param Configuration $configuration |
||
19 | * |
||
20 | * @param string $name |
||
21 | * @param string|null $inheritanceName |
||
22 | * |
||
23 | * @return \LTDBeget\sphinx\configurator\configurationEntities\sections\Source |
||
24 | * @throws \LogicException |
||
25 | * @throws \LTDBeget\sphinx\configurator\exceptions\SectionException |
||
26 | * @throws \InvalidArgumentException |
||
27 | */ |
||
28 | 12 | public static function createSource( |
|
38 | |||
39 | /** |
||
40 | * @param Configuration $configuration |
||
41 | * |
||
42 | * @param string $name |
||
43 | * @param string|null $inheritanceName |
||
44 | * |
||
45 | * @return \LTDBeget\sphinx\configurator\configurationEntities\sections\Index |
||
46 | * @throws \LogicException |
||
47 | * @throws \LTDBeget\sphinx\configurator\exceptions\SectionException |
||
48 | * @throws \InvalidArgumentException |
||
49 | */ |
||
50 | 8 | public static function createIndex(Configuration $configuration, string $name, string $inheritanceName = null |
|
57 | |||
58 | /** |
||
59 | * @param Configuration $configuration |
||
60 | * |
||
61 | * @return \LTDBeget\sphinx\configurator\configurationEntities\sections\Indexer |
||
62 | */ |
||
63 | 4 | public static function getOrCreateIndexer($configuration): Indexer |
|
71 | |||
72 | /** |
||
73 | * @param Configuration $configuration |
||
74 | * |
||
75 | * @return \LTDBeget\sphinx\configurator\configurationEntities\sections\Searchd |
||
76 | */ |
||
77 | 4 | public static function getOrCreateSearchd($configuration): Searchd |
|
85 | |||
86 | /** |
||
87 | * @param Configuration $configuration |
||
88 | * |
||
89 | * @return \LTDBeget\sphinx\configurator\configurationEntities\sections\Common |
||
90 | * @throws \LTDBeget\sphinx\configurator\exceptions\ConfigurationException |
||
91 | */ |
||
92 | 4 | public static function getOrCreateCommon($configuration): Common |
|
106 | } |
||
107 |