summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Activity/Event.php18
-rw-r--r--lib/public/Activity/IEvent.php12
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
*/