Total Complexity | 10 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | final class YamlRecursivePathsFinder |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $paths; |
||
15 | |||
16 | /** |
||
17 | * YamlRecursivePathsFinder constructor. |
||
18 | * |
||
19 | * @param array $paths |
||
20 | */ |
||
21 | public function __construct(array $paths) |
||
22 | { |
||
23 | $this->paths = []; |
||
24 | |||
25 | if (false !== $paths = \array_combine($paths, $paths)) { |
||
26 | $this->paths = $paths; |
||
27 | } |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getAllPaths() |
||
34 | { |
||
35 | $this->findPathRecursively($this->paths); |
||
36 | |||
37 | return $this->paths; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param array $paths |
||
42 | */ |
||
43 | private function findPathRecursively(array $paths) |
||
60 | } |
||
61 | } |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @param string $path |
||
66 | * |
||
67 | * @return mixed |
||
68 | */ |
||
69 | private function getImports($path) |
||
78 | } |
||
79 | } |
||
80 |