123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Eav\Api;
- /**
- * Interface AttributeGroupRepositoryInterface
- * @api
- * @since 100.0.2
- */
- interface AttributeGroupRepositoryInterface
- {
- /**
- * Save attribute group
- *
- * @param \Magento\Eav\Api\Data\AttributeGroupInterface $group
- * @return \Magento\Eav\Api\Data\AttributeGroupInterface
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- * @throws \Magento\Framework\Exception\StateException
- */
- public function save(\Magento\Eav\Api\Data\AttributeGroupInterface $group);
- /**
- * Retrieve attribute group
- *
- * @param int $groupId
- * @return \Magento\Eav\Api\Data\AttributeGroupInterface
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- */
- public function get($groupId);
- /**
- * Retrieve list of attribute groups
- *
- * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
- * @return \Magento\Eav\Api\Data\AttributeGroupSearchResultsInterface
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- */
- public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
- /**
- * Remove attribute group by id
- *
- * @param int $groupId
- * @return bool
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- * @throws \Magento\Framework\Exception\StateException
- */
- public function deleteById($groupId);
- /**
- * Remove attribute group
- *
- * @param \Magento\Eav\Api\Data\AttributeGroupInterface $group
- * @return bool
- * @throws \Magento\Framework\Exception\NoSuchEntityException
- * @throws \Magento\Framework\Exception\StateException
- */
- public function delete(\Magento\Eav\Api\Data\AttributeGroupInterface $group);
- }
|