* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\OrderState\Command; use PrestaShop\PrestaShop\Core\Domain\OrderState\Exception\OrderStateException; use PrestaShop\PrestaShop\Core\Domain\OrderState\ValueObject\OrderStateId; /** * Deletes Address */ class DeleteOrderStateCommand { /** * @var OrderStateId */ private $orderStateId; /** * @param int $orderStateId * * @throws OrderStateException */ public function __construct(int $orderStateId) { $this->orderStateId = new OrderStateId($orderStateId); } /** * @return OrderStateId */ public function getOrderStateId(): OrderStateId { return $this->orderStateId; } }