![]() 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 © 2016 MageWorx. All rights reserved. * See LICENSE.txt for license details. */ namespace MageWorx\SeoRedirects\Api; use Magento\Framework\Api\SearchCriteriaInterface; use MageWorx\SeoRedirects\Api\Data\DpRedirectInterface; /** * @api */ interface DpRedirectRepositoryInterface { /** * Save deleted product redirect * * @param DpRedirectInterface $dpRedirect * @return DpRedirectInterface * @throws \Magento\Framework\Exception\LocalizedException */ public function save(DpRedirectInterface $dpRedirect); /** * Retrieve deleted product redirect * * @param int $dpRedirectId * @return DpRedirectInterface * @throws \Magento\Framework\Exception\LocalizedException */ public function getById($dpRedirectId); /** * Retrieve deleted product 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 DpRedirectInterface $dpRedirect * @return bool true on success * @throws \Magento\Framework\Exception\LocalizedException */ public function delete(DpRedirectInterface $dpRedirect); /** * Delete redirect by ID * * @param int $dpRedirectId * @return bool true on success * @throws \Magento\Framework\Exception\NoSuchEntityException * @throws \Magento\Framework\Exception\LocalizedException */ public function deleteById($dpRedirectId); }