Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2namespace Apie\Common\Other\Audit;
3
4use Apie\Common\Enums\AuditLogEvent;
5use Apie\Core\Context\ApieContext;
6use Apie\Core\Entities\EntityInterface;
7use Apie\Core\Translator\ApieTranslatorInterface;
8use Apie\Core\ValueObjects\NonEmptyString;
9
10interface AuditEvent
11{
12    public function getEvent(): AuditLogEvent;
13
14    /**
15     * @param class-string<EntityInterface>|EntityInterface|null $entity
16     */
17    public function getDescription(
18        ApieTranslatorInterface $translator,
19        ApieContext $context,
20        string|EntityInterface|null $entity,
21    ): NonEmptyString;
22}