. */ namespace App\Entity\Contracts; use App\Entity\LogSystem\AbstractLogEntry; interface LogWithEventUndoInterface { /** * Checks if this element undoes another event. */ public function isUndoEvent(): bool; /** * Returns the ID of the undone event or null if no event is undone. */ public function getUndoEventID(): ?int; /** * Sets the event that is undone, and the undo mode. * * @return $this */ public function setUndoneEvent(AbstractLogEntry $event, string $mode = 'undo'): self; /** * Returns the mode how the event was undone: * "undo" = Only a single event was applied to element * "revert" = Element was reverted to the state it was to the timestamp of the log. */ public function getUndoMode(): string; }