. */ namespace SP\Domain\Security; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; use SP\Core\Exceptions\SPException; use SP\DataModel\EventlogData; use SP\DataModel\ItemSearchData; use SP\Infrastructure\Database\QueryResult; /** * Class EventlogService * * @package SP\Domain\Common\Services\EventLog */ interface EventlogServiceInterface { /** * @throws ConstraintException * @throws QueryException */ public function search(ItemSearchData $itemSearchData): QueryResult; /** * @throws ConstraintException * @throws QueryException * @throws SPException */ public function clear(): bool; /** * @throws ConstraintException * @throws QueryException */ public function create(EventlogData $eventlogData): int; }