* @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\Order\ValueObject\OrderId; /** * Updates order status. */ class UpdateOrderStatusCommand { /** * @var OrderId */ private $orderId; /** * @var int */ private $newOrderStatusId; /** * @param int $orderId * @param int $newOrderStatusId */ public function __construct($orderId, $newOrderStatusId) { $this->orderId = new OrderId($orderId); $this->newOrderStatusId = $newOrderStatusId; } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } /** * @return int */ public function getNewOrderStatusId() { return $this->newOrderStatusId; } }