diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-07 17:39:23 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-16 09:25:45 +0100 |
commit | c2a5c1f2c6a254143eced58733ace517aa35ddae (patch) | |
tree | ca1b65c8fb5dc7b416577e3eb437651585d8b982 /lib | |
parent | 6ddf43e27a6add5b7fd15c26dae9a6e18e46f309 (diff) | |
download | nextcloud-server-c2a5c1f2c6a254143eced58733ace517aa35ddae.tar.gz nextcloud-server-c2a5c1f2c6a254143eced58733ace517aa35ddae.zip |
Allow combining events
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Activity/Event.php | 18 | ||||
-rw-r--r-- | lib/public/Activity/IEvent.php | 12 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/private/Activity/Event.php b/lib/private/Activity/Event.php index 73bde7f19b2..c53335a316f 100644 --- a/lib/private/Activity/Event.php +++ b/lib/private/Activity/Event.php @@ -70,6 +70,8 @@ class Event implements IEvent { /** @var string */ protected $icon = ''; + /** @var IEvent */ + protected $child = null; /** @var IValidator */ protected $richValidator; @@ -470,6 +472,22 @@ class Event implements IEvent { } /** + * @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 */ diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php index 6d587c381c2..c4becf54a7e 100644 --- a/lib/public/Activity/IEvent.php +++ b/lib/public/Activity/IEvent.php @@ -293,6 +293,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 */ |