* @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\Product\Combination\Command; use PrestaShop\PrestaShop\Core\Domain\Product\Combination\ValueObject\CombinationId; use PrestaShop\PrestaShop\Core\Domain\Shop\ValueObject\ShopConstraint; class DeleteCombinationCommand { /** * @var CombinationId */ private $combinationId; /** * @var ShopConstraint */ private $shopConstraint; /** * @param int $combinationId * @param ShopConstraint $shopConstraint */ public function __construct( int $combinationId, ShopConstraint $shopConstraint ) { $this->combinationId = new CombinationId($combinationId); $this->shopConstraint = $shopConstraint; } /** * @return CombinationId */ public function getCombinationId(): CombinationId { return $this->combinationId; } /** * @return ShopConstraint */ public function getShopConstraint(): ShopConstraint { return $this->shopConstraint; } }