| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CancelOrderResponse extends AbstractResponse implements ICancelOrderResponseInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Order ID |
||
| 12 | * @var string $orderId |
||
| 13 | */ |
||
| 14 | private string $orderId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * User customised order id |
||
| 18 | * @var string $orderLinkId |
||
| 19 | */ |
||
| 20 | private string $orderLinkId; |
||
| 21 | |||
| 22 | public function __construct(array $data) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getOrderId(): string |
||
| 33 | { |
||
| 34 | return $this->orderId; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $orderId |
||
| 39 | * @return CancelOrderResponse |
||
| 40 | */ |
||
| 41 | private function setOrderId(string $orderId): self |
||
| 42 | { |
||
| 43 | $this->orderId = $orderId; |
||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getOrderLinkId(): string |
||
| 51 | { |
||
| 52 | return $this->orderLinkId; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param string $orderLinkId |
||
| 57 | * @return CancelOrderResponse |
||
| 58 | */ |
||
| 59 | private function setOrderLinkId(string $orderLinkId): self |
||
| 63 | } |
||
| 64 | } |
||
| 65 |