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