* @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; class CancelOrderProductCommand { /** * @var array * * key: orderDetailId, value: quantity */ private $cancelledProducts; /** * @var OrderId */ private $orderId; /** * CancelOrderProductCommand constructor. * * @param array $cancelledProducts * @param int $orderId */ public function __construct(array $cancelledProducts, int $orderId) { $this->cancelledProducts = $cancelledProducts; $this->orderId = new OrderId($orderId); } /** * @return array */ public function getCancelledProducts() { return $this->cancelledProducts; } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } }