![]() 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/amasty/product-attachment/Api/ |
<?php /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Product Attachments Base for Magento 2 */ namespace Amasty\ProductAttachment\Api; interface IconRepositoryInterface { /** * Save icon. * * @param \Amasty\ProductAttachment\Api\Data\IconInterface $icon * * @throws \Magento\Framework\Exception\CouldNotSaveException * @return \Amasty\ProductAttachment\Api\Data\IconInterface */ public function save(\Amasty\ProductAttachment\Api\Data\IconInterface $icon); /** * Retrieve icon. * * @param int $iconId * @return \Amasty\ProductAttachment\Api\Data\IconInterface * @throws \Magento\Framework\Exception\NoSuchEntityException */ public function getById($iconId); /** * Retrieve icons matching the specified criteria. * * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria * @return \Amasty\ProductAttachment\Api\Data\IconInterface[] * @throws \Magento\Framework\Exception\LocalizedException */ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria); /** * Delete attachment. * * @param \Amasty\ProductAttachment\Api\Data\IconInterface $icon * @return bool * @throws \Magento\Framework\Exception\LocalizedException */ public function delete(\Amasty\ProductAttachment\Api\Data\IconInterface $icon); /** * Delete icon by ID. * * @param int $iconId * @return bool * @throws \Magento\Framework\Exception\NoSuchEntityException * @throws \Magento\Framework\Exception\LocalizedException */ public function deleteById($iconId); }