added a way to clear event logs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user