Adjust for future reset functionality

This commit is contained in:
Dennis Eichhorn 2016-12-30 19:51:38 +01:00
parent 5dc13770b0
commit 73d89b7d05
2 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class EventManager implements Mediator
/** /**
* {@inheritdoc} * {@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])) { if (isset($this->groups[$group])) {
unset($this->groups[$group][$id]); unset($this->groups[$group][$id]);

View File

@ -79,11 +79,12 @@ interface Mediator extends \Countable
* *
* @param string $group Group * @param string $group Group
* @param string $id Event ID * @param string $id Event ID
* @param bool $reset Reset if success
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @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 */;
} }