* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Order\Command; use PrestaShop\PrestaShop\Core\Domain\Address\ValueObject\AddressId; use PrestaShop\PrestaShop\Core\Domain\Order\ValueObject\OrderId; /** * Changes delivery address for given order. */ class ChangeOrderDeliveryAddressCommand { /** * @var OrderId */ private $orderId; /** * @var AddressId */ private $newDeliveryAddressId; /** * @param int $orderId * @param int $newDeliveryAddressId */ public function __construct($orderId, $newDeliveryAddressId) { $this->orderId = new OrderId($orderId); $this->newDeliveryAddressId = new AddressId($newDeliveryAddressId); } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } /** * @return AddressId */ public function getNewDeliveryAddressId() { return $this->newDeliveryAddressId; } }