Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class FileLoader |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected static $extensions = [ |
||
18 | 'php' => FileLoader\PHPLoader::class, |
||
19 | 'yml' => FileLoader\YamlLoader::class, |
||
20 | 'yaml' => FileLoader\YamlLoader::class, |
||
21 | 'json' => FileLoader\JSONLoader::class, |
||
22 | 'xml' => FileLoader\XmlLoader::class, |
||
23 | 'ini' => FileLoader\IniLoader::class, |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * @return array |
||
28 | * @codeCoverageIgnore |
||
29 | */ |
||
30 | public static function extensions() |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $file |
||
37 | * |
||
38 | * @return FileLoader\DataInterface |
||
39 | * |
||
40 | * @throws NotFound\Path |
||
41 | * @throws Exceptions\PermissionDenied |
||
42 | */ |
||
43 | 6 | public static function load($file) |
|
67 |