| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CsvLoader extends AbstractFileLoader implements LoaderInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @inheritDoc |
||
| 12 | */ |
||
| 13 | protected $fileExtension = 'csv'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritDoc |
||
| 17 | */ |
||
| 18 | 1 | public function load(array $data) |
|
| 19 | { |
||
| 20 | 1 | foreach ($data as $filename => $fileData) { |
|
| 21 | 1 | $this->processFile($filename, $fileData); |
|
| 22 | } |
||
| 23 | 1 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $filename |
||
| 27 | * @param array $data |
||
| 28 | */ |
||
| 29 | 1 | protected function processFile($filename, $data) |
|
| 52 | 1 | } |
|
| 53 | } |
||
| 54 |