b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / app / code / Amasty / ImportPro / Api /
Filename/home/a/home/dev2.destoffenstraat.com/app/code/Amasty/ImportPro/Api/HistoryRepositoryInterface.php
Size1.68 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified14-Jun-2025 23:38
Last accessed22-Aug-2025 22:32
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Import Pro for Magento 2 (System)
*/

namespace Amasty\ImportPro\Api;

/**
* @api
*/
interface HistoryRepositoryInterface
{
/**
* Save
*
* @param \Amasty\ImportPro\Api\Data\HistoryInterface $history
*
* @return \Amasty\ImportPro\Api\Data\HistoryInterface
*/
public function save(\Amasty\ImportPro\Api\Data\HistoryInterface $history);

/**
* Get by id
*
* @param int $id
*
* @return \Amasty\ImportPro\Api\Data\HistoryInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getById($id);

/**
* Delete
*
* @param \Amasty\ImportPro\Api\Data\HistoryInterface $history
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function delete(\Amasty\ImportPro\Api\Data\HistoryInterface $history);

/**
* Delete by id
*
* @param int $id
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function deleteById($id);

/**
* Clear history
*
* @return bool true on success
* @throws \Exception
*/
public function clearHistory();

/**
* Get by identity
*
* @param string $identity
*
* @return \Amasty\ImportPro\Api\Data\HistoryInterface
*/
public function getByIdentity($identity);

/**
* @param string $jobType
* @param int $days
*
* @return void
*/
public function clearHistoryByDays(string $jobType, int $days);
}