Skip to content

Commit

Permalink
Return $this for addEvent and emptyEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvialf committed Nov 4, 2024
1 parent 3f542d5 commit 0110595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/class/listener.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public function remove() {

public function emptyEvent() {
$this->event = array();
return $this;
}

public function addEvent($_id) {
Expand All @@ -313,6 +314,7 @@ public function addEvent($_id) {
$event[] = '#' . $id . '#';
}
$this->setEvent($event);
return $this;
}

/* * **********************Getteur Setteur*************************** */
Expand Down

0 comments on commit 0110595

Please sign in to comment.