added a way to clear event logs

This commit is contained in:
ArabCoders
2025-02-15 12:21:05 +03:00
parent 7f61ac96be
commit 1d294cb0a8

View File

@@ -29,6 +29,11 @@ class DataEvent extends Event
$this->eventInfo->logs[] = $log;
}
public function clearLogs(): void
{
$this->eventInfo->logs = [];
}
public function getLogs(): array
{
return $this->eventInfo->logs;