| 1 | <?php |
||
| 7 | class PathLoader implements Loader |
||
| 8 | { |
||
| 9 | /** @var \Wandu\Config\Contracts\Loader[] */ |
||
| 10 | protected $loaders; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | protected $pattern; |
||
| 14 | |||
| 15 | 2 | public function __construct(array $loaders = [], string $pattern = '~^[a-z_][a-z0-9_]*$~') |
|
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 2 | public function test(string $path): bool |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 2 | public function load(string $path) |
|
| 55 | } |
||
| 56 |