| @@ 66-75 (lines=10) @@ | ||
| 63 | * @param string $orderId |
|
| 64 | * @return self |
|
| 65 | */ |
|
| 66 | public function setOrderId(string $orderId): self |
|
| 67 | { |
|
| 68 | if (isset($this->params['Target']['OrderId'])) { |
|
| 69 | throw new LogicException('OrderId is already set.'); |
|
| 70 | } |
|
| 71 | ||
| 72 | $this->params['Target']['OrderId'] = $orderId; |
|
| 73 | ||
| 74 | return $this; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * @return array |
|
| @@ 43-52 (lines=10) @@ | ||
| 40 | * @param string $orderId |
|
| 41 | * @return self |
|
| 42 | */ |
|
| 43 | public function setOrderId(string $orderId): self |
|
| 44 | { |
|
| 45 | if (isset($this->params['Target']['OrderId'])) { |
|
| 46 | throw new LogicException('OrderId is already set.'); |
|
| 47 | } |
|
| 48 | ||
| 49 | $this->params['Target']['OrderId'] = $orderId; |
|
| 50 | ||
| 51 | return $this; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @param bool $isPointFix |
|
| @@ 58-67 (lines=10) @@ | ||
| 55 | * @param bool $isPointFix |
|
| 56 | * @return self |
|
| 57 | */ |
|
| 58 | public function setIsPointFix(bool $isPointFix): self |
|
| 59 | { |
|
| 60 | if (isset($this->params['Target']['IsPointFix'])) { |
|
| 61 | throw new LogicException('IsPointFix is already set.'); |
|
| 62 | } |
|
| 63 | ||
| 64 | $this->params['Target']['IsPointFix'] = $isPointFix ? 'true' : 'false'; |
|
| 65 | ||
| 66 | return $this; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @param string $operationUser |
|
| @@ 73-82 (lines=10) @@ | ||
| 70 | * @param string $operationUser |
|
| 71 | * @return self |
|
| 72 | */ |
|
| 73 | public function setOperationUser(string $operationUser): self |
|
| 74 | { |
|
| 75 | if (isset($this->params['Target']['OperationUser'])) { |
|
| 76 | throw new LogicException('OperationUser is already set.'); |
|
| 77 | } |
|
| 78 | ||
| 79 | $this->params['Target']['OperationUser'] = $operationUser; |
|
| 80 | ||
| 81 | return $this; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @param ShipStatus $shipStatus |
|