1 | <?php declare(strict_types = 1); |
||
12 | class FileManager |
||
13 | { |
||
14 | /** |
||
15 | * The config values. |
||
16 | * @var Config |
||
17 | */ |
||
18 | private $config; |
||
19 | |||
20 | /** |
||
21 | * FileManager constructor. |
||
22 | * @param Config $config Configuration Settings. |
||
23 | */ |
||
24 | public function __construct(Config $config) |
||
28 | |||
29 | /** |
||
30 | * Recursively finds all files with the .php extension in the provided |
||
31 | * $path and returns list as array. |
||
32 | * @param array $paths Paths in which to look for .php files. |
||
33 | * @return FileCollection |
||
34 | */ |
||
35 | public function getPhpFiles(array $paths): FileCollection |
||
56 | |||
57 | /** |
||
58 | * Determines if a file should be ignored. |
||
59 | * @param \SplFileInfo $file File. |
||
60 | * @return boolean |
||
61 | */ |
||
62 | private function fileShouldBeIgnored(SplFileInfo $file): bool |
||
73 | } |
||
74 |