Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class BatchCancelOrderByIdResponseItem extends AbstractResponse implements IBatchCancelOrderByIdResponseItemInterface |
||
9 | { |
||
10 | /** |
||
11 | * Order ID |
||
12 | * @var int $orderId |
||
13 | */ |
||
14 | private int $orderId; |
||
15 | |||
16 | /** |
||
17 | * Error code |
||
18 | * @var string $code; |
||
19 | */ |
||
20 | private string $code; |
||
21 | |||
22 | public function __construct(array $data) |
||
23 | { |
||
24 | $this->orderId = $data['orderId']; |
||
25 | $this->code = $data['code']; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | */ |
||
31 | public function getOrderId(): int |
||
32 | { |
||
33 | return $this->orderId; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getCode(): string |
||
42 | } |
||
43 | } |