| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 39 | private function loadReporters() |
||
| 40 | { |
||
| 41 | $reporters = []; |
||
| 42 | |||
| 43 | foreach ($this->getValues() as $reporterName => $arguments) { |
||
| 44 | $factory = ReporterFactory::fromName($reporterName); |
||
| 45 | $reporter = $factory->createWithArguments( $arguments->toArray() ); |
||
| 46 | |||
| 47 | $reporters[] = $reporter; |
||
| 48 | } |
||
| 49 | |||
| 50 | return new CompositeReporter($reporters); |
||
| 51 | } |
||
| 52 | |||
| 54 |