]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow combining events
authorJoas Schilling <coding@schilljs.com>
Mon, 7 Nov 2016 16:39:23 +0000 (17:39 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 16 Nov 2016 08:25:45 +0000 (09:25 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Activity/Event.php
lib/public/Activity/IEvent.php

index 73bde7f19b2f705f652f1b46e766e42c83ddd0bb..c53335a316fc2c3158e408edae41530d6a69ffcb 100644 (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
index 6d587c381c22cdc616a6ec735092a3b4df3a8364..c4becf54a7ea41bc1d7b4168ba9a420ad818775c 100644 (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