1 | <?php |
||
15 | final class FilesProvider |
||
16 | { |
||
17 | /** |
||
18 | * @var SourceFinder |
||
19 | */ |
||
20 | private $sourceFinder; |
||
21 | |||
22 | /** |
||
23 | * @var FileFactory |
||
24 | */ |
||
25 | private $fileFactory; |
||
26 | |||
27 | /** |
||
28 | * @var File[][] |
||
29 | */ |
||
30 | private $filesBySource = []; |
||
31 | |||
32 | 2 | public function __construct(SourceFinder $sourceFinder, FileFactory $fileFactory) |
|
37 | |||
38 | /** |
||
39 | * @return File[] |
||
40 | */ |
||
41 | 2 | public function getFilesForSource(array $source, bool $isFixer) : array |
|
53 | |||
54 | /** |
||
55 | * @param SplFileInfo[] $files |
||
56 | * @param bool $isFixer |
||
57 | * @return File[] |
||
58 | */ |
||
59 | 2 | private function wrapFilesToValueObjects(array $files, bool $isFixer) : array |
|
67 | } |
||
68 |