Loading src/Event.php +2 −0 Original line number Diff line number Diff line Loading @@ -20,4 +20,6 @@ class Event public ?int $progress = null; public ?int $total = null; public ?string $message = null; } No newline at end of file src/TableauBord.php +3 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ class TableauBord public function onAction(string $action, ?int $progress = null, ?int $total = null) public function onAction(string $action, ?int $progress = null, ?int $total = null, ?string $message = null) { if (null !== $this->onAction) { $event = new Event(); Loading @@ -94,6 +94,8 @@ class TableauBord $event->action = $action; $event->progress = $progress; $event->total = $total; $event->message = $message; call_user_func($this->onAction, $event); } Loading Loading
src/Event.php +2 −0 Original line number Diff line number Diff line Loading @@ -20,4 +20,6 @@ class Event public ?int $progress = null; public ?int $total = null; public ?string $message = null; } No newline at end of file
src/TableauBord.php +3 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ class TableauBord public function onAction(string $action, ?int $progress = null, ?int $total = null) public function onAction(string $action, ?int $progress = null, ?int $total = null, ?string $message = null) { if (null !== $this->onAction) { $event = new Event(); Loading @@ -94,6 +94,8 @@ class TableauBord $event->action = $action; $event->progress = $progress; $event->total = $total; $event->message = $message; call_user_func($this->onAction, $event); } Loading