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