From 011059539d485f787c26ad276ca5640ca72c4a22 Mon Sep 17 00:00:00 2001 From: Salvialf Date: Mon, 4 Nov 2024 09:59:49 +0100 Subject: [PATCH] Return $this for addEvent and emptyEvent --- core/class/listener.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/class/listener.class.php b/core/class/listener.class.php index 0f0a3ea401..f9c532df38 100644 --- a/core/class/listener.class.php +++ b/core/class/listener.class.php @@ -301,6 +301,7 @@ public function remove() { public function emptyEvent() { $this->event = array(); + return $this; } public function addEvent($_id) { @@ -313,6 +314,7 @@ public function addEvent($_id) { $event[] = '#' . $id . '#'; } $this->setEvent($event); + return $this; } /* * **********************Getteur Setteur*************************** */