| @@ 88-97 (lines=10) @@ | ||
| 85 | * @param ShipStatus $shipStatus |
|
| 86 | * @return self |
|
| 87 | */ |
|
| 88 | public function setShipStatus(ShipStatus $shipStatus): self |
|
| 89 | { |
|
| 90 | if (isset($this->params['Order']['Ship']['ShipStatus'])) { |
|
| 91 | throw new LogicException('ShipStatus is already set.'); |
|
| 92 | } |
|
| 93 | ||
| 94 | $this->params['Order']['Ship']['ShipStatus'] = $shipStatus->getValue(); |
|
| 95 | ||
| 96 | return $this; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @param ShipMethod $shipMethod |
|
| @@ 103-112 (lines=10) @@ | ||
| 100 | * @param ShipMethod $shipMethod |
|
| 101 | * @return self |
|
| 102 | */ |
|
| 103 | public function setShipMethod(ShipMethod $shipMethod): self |
|
| 104 | { |
|
| 105 | if (isset($this->params['Order']['Ship']['ShipMethod'])) { |
|
| 106 | throw new LogicException('ShipMethod is already set.'); |
|
| 107 | } |
|
| 108 | ||
| 109 | $this->params['Order']['Ship']['ShipMethod'] = $shipMethod->getValue(); |
|
| 110 | ||
| 111 | return $this; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * @param string $shipNotes |
|