* @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\AttributeGroup\Command; use PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Exception\AttributeGroupConstraintException; use PrestaShop\PrestaShop\Core\Domain\AttributeGroup\ValueObject\AttributeGroupId; /** * Deletes attribute group by provided id */ final class DeleteAttributeGroupCommand { /** * @var AttributeGroupId */ private $attributeGroupId; /** * @param int $attributeGroupId * * @throws AttributeGroupConstraintException */ public function __construct($attributeGroupId) { $this->attributeGroupId = new AttributeGroupId($attributeGroupId); } /** * @return AttributeGroupId */ public function getAttributeGroupId() { return $this->attributeGroupId; } }