| 1 | <?php |
||
| 6 | class JsonLoader implements Loader |
||
| 7 | { |
||
| 8 | /** @var string */ |
||
| 9 | protected $pattern; |
||
| 10 | |||
| 11 | 3 | public function __construct(string $pattern = '~^[a-z_][a-z0-9_]*\.json$~') |
|
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 3 | public function test(string $path): bool |
|
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 3 | public function load(string $path) |
|
| 31 | } |
||
| 32 |