| 1 | <?php |
||
| 11 | class ConfigurationSerializer |
||
| 12 | { |
||
| 13 | private $configuration; |
||
| 14 | |||
| 15 | 3 | public function __construct(Configuration $configuration) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | * @throws \LTDBeget\sphinx\configurator\exceptions\ConfigurationException |
||
| 23 | */ |
||
| 24 | 3 | public function toString(): string |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | * @throws \LogicException |
||
| 32 | * @throws \LTDBeget\sphinx\configurator\exceptions\SectionException |
||
| 33 | * @throws \InvalidArgumentException |
||
| 34 | * @throws \LTDBeget\sphinx\configurator\exceptions\ConfigurationException |
||
| 35 | */ |
||
| 36 | 1 | public function toJson(): string |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | * @throws \InvalidArgumentException |
||
| 44 | * @throws \LTDBeget\sphinx\configurator\exceptions\SectionException |
||
| 45 | * @throws \LogicException |
||
| 46 | * @throws \LTDBeget\sphinx\configurator\exceptions\ConfigurationException |
||
| 47 | */ |
||
| 48 | 1 | public function toArray(): array |
|
| 52 | } |
||
| 53 |