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