. */ namespace SP\Domain\Security\In; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; use SP\DataModel\EventlogData; use SP\DataModel\ItemSearchData; use SP\Infrastructure\Database\QueryResult; /** * Class EventlogRepository * * @package SP\Infrastructure\Security\Repositories */ interface EventlogRepositoryInterface { /** * Clears the event log * * @return bool con el resultado * @throws QueryException * @throws ConstraintException */ public function clear(): bool; /** * Searches for items by a given filter * * @param ItemSearchData $itemSearchData * * @return QueryResult * @throws ConstraintException * @throws QueryException */ public function search(ItemSearchData $itemSearchData): QueryResult; /** * @param EventlogData $eventlogData * * @return int * @throws ConstraintException * @throws QueryException */ public function create(EventlogData $eventlogData): int; }