| 1 | <?php declare(strict_types = 1); |
||
| 14 | class JsonConfigParser implements ConfigFileParser, ConfigStringParser |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var FilesystemInterface |
||
| 18 | */ |
||
| 19 | private $filesystem; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Construct function. |
||
| 23 | * |
||
| 24 | * @param FilesystemInterface $filesystem |
||
| 25 | */ |
||
| 26 | 3 | public function __construct(FilesystemInterface $filesystem) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | 1 | public function parseFile(string $filename): array |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | 2 | public function parseString(string $configuration): array |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | 1 | public function supportedExtensions(): array |
|
| 66 | } |