| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function __construct(array $data) |
||
| 15 | { |
||
| 16 | $list = new EntityCollection(); |
||
| 17 | |||
| 18 | if (!empty($data['list'])) { |
||
| 19 | array_map(function ($item) use ($list) { |
||
| 20 | $list->push(ResponseDtoBuilder::make(TradeHistoryResponseItem::class, $item)); |
||
| 21 | }, $data['list']); |
||
| 22 | } |
||
| 23 | |||
| 24 | $this->list = $list; |
||
| 25 | } |
||
| 32 |