| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 1 | public function __construct(DTO\Message $message) |
|
| 18 | { |
||
| 19 | 1 | $appendIterator = new AppendIterator(); |
|
| 20 | 1 | $records = $message->getRecords(); |
|
| 21 | 1 | foreach ($records as $record) { |
|
| 22 | 1 | $appendIterator->append(new ArrayIterator($record->getEntries())); |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | parent::__construct($appendIterator); |
|
| 26 | 1 | } |
|
| 27 | } |
||
| 28 |