![]() 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/mageworx/module-seoredirects/Api/ |
<?php /** * Copyright © 2017 MageWorx. All rights reserved. * See LICENSE.txt for license details. */ namespace MageWorx\SeoRedirects\Api; use Magento\Framework\Api\SearchCriteriaInterface; use MageWorx\SeoRedirects\Api\Data\CustomRedirectInterface; /** * @api */ interface CustomRedirectRepositoryInterface { /** * Save custom redirect * * @param CustomRedirectInterface $customRedirect * @return CustomRedirectInterface * @throws \Magento\Framework\Exception\LocalizedException */ public function save(CustomRedirectInterface $customRedirect); /** * Retrieve custom redirect * * @param int $customRedirectId * @return CustomRedirectInterface * @throws \Magento\Framework\Exception\LocalizedException */ public function getById($customRedirectId); /** * Retrieve custom redirects matching the specified criteria * * @param SearchCriteriaInterface $searchCriteria * @return \MageWorx\SeoRedirects\Api\Data\DpRedirectSearchResultsInterface * @throws \Magento\Framework\Exception\LocalizedException */ public function getList(SearchCriteriaInterface $searchCriteria); /** * Delete redirect * * @param CustomRedirectInterface $customRedirect * @return bool true on success * @throws \Magento\Framework\Exception\LocalizedException */ public function delete(CustomRedirectInterface $customRedirect); /** * Delete redirect by ID * * @param int $customRedirectId * @return bool true on success * @throws \Magento\Framework\Exception\NoSuchEntityException * @throws \Magento\Framework\Exception\LocalizedException */ public function deleteById($customRedirectId); }