Allow combining events
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6ddf43e27a
commit
c2a5c1f2c6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue