Skip to content

Commit

Permalink
Merge pull request #2970 from jeedom/listeners-addevent-emptyevent-ch…
Browse files Browse the repository at this point in the history
…aining

Return $this for addEvent and emptyEvent
  • Loading branch information
Salvialf authored Nov 5, 2024
2 parents 0241315 + 0110595 commit 84c6f6d
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 84c6f6d

Please sign in to comment.