* @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\Product\Command; use PrestaShop\PrestaShop\Core\Domain\Order\ValueObject\OrderId; /** * Deletes product from given order. */ class DeleteProductFromOrderCommand { /** * @var OrderId */ private $orderId; /** * @var int */ private $orderDetailId; /** * @param int $orderId * @param int $orderDetailId */ public function __construct($orderId, $orderDetailId) { $this->orderId = new OrderId($orderId); $this->orderDetailId = $orderDetailId; } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } /** * @return int */ public function getOrderDetailId() { return $this->orderDetailId; } }