<?php
namespace jd_vop\response\order;
use jd_vop\response\Result;
class BatchConfirmReceivedList implements Result
{
public $data;
public function __construct($data)
{
$this->data = $data;
}
public static function parse($result): self
{
$list = [];
foreach ($result ?? [] as $v) {
$list[] = new BatchConfirmReceived($v['jdOrderId'] ?? 0, $v['confirmState'] ?? "", $v['errorMsg'] ?? "");
}
return new self($list);
}
}