| 1 | <?php |
||
| 15 | final class Configuration |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $options = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var YamlAndNeonParser |
||
| 24 | */ |
||
| 25 | private $yamlAndNeonParser; |
||
| 26 | |||
| 27 | 9 | public function __construct(YamlAndNeonParser $yamlAndNeonParser) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param SplFileInfo[] $files |
||
| 34 | */ |
||
| 35 | 3 | public function loadOptionsFromFiles(array $files) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $name |
||
| 45 | * @param string|array $value |
||
| 46 | */ |
||
| 47 | 2 | public function addOption(string $name, $value) |
|
| 51 | |||
| 52 | 9 | public function getOptions() : array |
|
| 56 | } |
||
| 57 |