| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function __construct(ConfigurationLoader $configurationLoader, array $filesConfiguration = array()) |
||
| 27 | { |
||
| 28 | $this->configurationLoader = $configurationLoader; |
||
| 29 | $this->fileSets = []; |
||
| 30 | |||
| 31 | foreach ($filesConfiguration as $config) { |
||
| 32 | $rootDir = $this->configurationLoader->getRootDirectory(); |
||
| 33 | $matcher = new Matcher($config['pattern']); |
||
| 34 | $options = $config['options']; |
||
| 35 | $fileSet = new FileSet($rootDir, $matcher, $options); |
||
| 36 | |||
| 37 | $this->addFileSet($fileSet); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 61 |