![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-catalog/Api/ |
<?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); }