Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | final class YamlLoader implements LoaderInterface |
||
27 | { |
||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function supports(string $file): bool |
||
32 | { |
||
33 | return in_array(pathinfo($file, PATHINFO_EXTENSION), ['yaml', 'yml']); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function load(string $file): stdClass |
||
45 | } |
||
46 | } |
||
48 |