123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Catalog\Api;
- /**
- * @api
- * @since 100.0.2
- */
- interface ProductAttributeManagementInterface
- {
- /**
- * Assign attribute to attribute set
- *
- * @param int $attributeSetId
- * @param int $attributeGroupId
- * @param string $attributeCode
- * @param int $sortOrder
- * @return int
- * @throws \Magento\Framework\Exception\InputException
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- */
- public function assign($attributeSetId, $attributeGroupId, $attributeCode, $sortOrder);
- /**
- * Remove attribute from attribute set
- *
- * @param string $attributeSetId
- * @param string $attributeCode
- * @throws \Magento\Framework\Exception\InputException
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- * @throws \Magento\Framework\Exception\StateException
- * @return bool
- */
- public function unassign($attributeSetId, $attributeCode);
- /**
- * Retrieve related attributes based on given attribute set ID
- *
- * @param string $attributeSetId
- * @throws \Magento\Framework\Exception\NoSuchEntityException If $attributeSetId is not found
- * @return \Magento\Catalog\Api\Data\ProductAttributeInterface[]
- */
- public function getAttributes($attributeSetId);
- }
|