Allow combining events

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-11-07 17:39:23 +01:00
parent 6ddf43e27a
commit c2a5c1f2c6
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 30 additions and 0 deletions

View File

@ -70,6 +70,8 @@ class Event implements IEvent {
/** @var string */
protected $icon = '';
/** @var IEvent */
protected $child = null;
/** @var IValidator */
protected $richValidator;
@ -469,6 +471,22 @@ class Event implements IEvent {
return $this->icon;
}
/**
* @param IEvent $child
* @since 9.2.0
*/
public function setChildEvent(IEvent $child) {
$this->child = $child;
}
/**
* @return IEvent|null
* @since 9.2.0
*/
public function getChildEvent() {
return $this->child;
}
/**
* @return bool
* @since 8.2.0

View File

@ -292,6 +292,18 @@ interface IEvent {
*/
public function getIcon();
/**
* @param IEvent $child
* @since 9.2.0
*/
public function setChildEvent(IEvent $child);
/**
* @return IEvent|null
* @since 9.2.0
*/
public function getChildEvent();
/**
* @return bool
* @since 9.2.0