mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Adjust for future reset functionality
This commit is contained in:
parent
5dc13770b0
commit
73d89b7d05
|
|
@ -75,7 +75,7 @@ class EventManager implements Mediator
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function trigger(string $group, string $id = '') /* : void */
|
||||
public function trigger(string $group, string $id = '', bool $reset = false) /* : void */
|
||||
{
|
||||
if (isset($this->groups[$group])) {
|
||||
unset($this->groups[$group][$id]);
|
||||
|
|
|
|||
|
|
@ -79,11 +79,12 @@ interface Mediator extends \Countable
|
|||
*
|
||||
* @param string $group Group
|
||||
* @param string $id Event ID
|
||||
* @param bool $reset Reset if success
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function trigger(string $group, string $id) /* : void */;
|
||||
public function trigger(string $group, string $id, bool $reset = false) /* : void */;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user