| 1 | <?php declare(strict_types = 1); |
||
| 13 | class Json implements ConfigFileParser |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var FilesystemInterface |
||
| 17 | */ |
||
| 18 | private $filesystem; |
||
| 19 | 3 | ||
| 20 | /** |
||
| 21 | 3 | * Construct function. |
|
| 22 | 3 | * |
|
| 23 | 1 | * @param FilesystemInterface $filesystem |
|
| 24 | 1 | */ |
|
| 25 | public function __construct(FilesystemInterface $filesystem) |
||
| 29 | 2 | ||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | public function fromFile(string $filename): array |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | public function fromString(string $configuration): array |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritDoc |
||
| 60 | */ |
||
| 61 | public function supportedExtensions(): array |
||
| 65 | } |