. */ namespace SP\Domain\Security\Ports; use SP\Domain\Core\Dtos\ItemSearchDto; use SP\Domain\Core\Exceptions\ConstraintException; use SP\Domain\Core\Exceptions\QueryException; use SP\Domain\Core\Exceptions\SPException; use SP\Domain\Security\Models\Eventlog; use SP\Infrastructure\Database\QueryResult; /** * Class EventlogService * * @package SP\Domain\Common\Services\EventLog */ interface EventlogService { /** * @throws ConstraintException * @throws QueryException */ public function search(ItemSearchDto $itemSearchData): QueryResult; /** * @throws ConstraintException * @throws QueryException * @throws SPException */ public function clear(): bool; /** * @throws ConstraintException * @throws QueryException */ public function create(Eventlog $eventlog): int; }