| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function export($filename, $format, $data, $fields) |
||
| 13 | { |
||
| 14 | foreach ($this->exporters as $exporter) { |
||
| 15 | if ($exporter->supports($format)) { |
||
| 16 | return $exporter->export($filename, $format, $data, $fields); |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | throw new \InvalidArgumentException(sprintf('There are no exporters for format %s.', $format)); |
||
| 21 | } |
||
| 22 | |||
| 47 |