summaryrefslogtreecommitdiffstats
path: root/lib/public/WorkflowEngine/IRuleMatcher.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-27 17:22:26 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-28 13:51:21 +0100
commitb3749fbe1690edd64f16337ba01f381f2cf6176b (patch)
tree2ebbb8fd0a9c340657e965d5dfad8d970ebcdc09 /lib/public/WorkflowEngine/IRuleMatcher.php
parent7a7a415fdc81b36a27b8a379e83f7f334c8194e6 (diff)
downloadnextcloud-server-b3749fbe1690edd64f16337ba01f381f2cf6176b.tar.gz
nextcloud-server-b3749fbe1690edd64f16337ba01f381f2cf6176b.zip
add convenience interfaces so entities can provide presentable details
the File entity starts with a display text (used by talk) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/WorkflowEngine/IRuleMatcher.php')
-rw-r--r--lib/public/WorkflowEngine/IRuleMatcher.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IRuleMatcher.php b/lib/public/WorkflowEngine/IRuleMatcher.php
index fa2359edc09..28abaa56137 100644
--- a/lib/public/WorkflowEngine/IRuleMatcher.php
+++ b/lib/public/WorkflowEngine/IRuleMatcher.php
@@ -67,4 +67,13 @@ interface IRuleMatcher extends IFileCheck {
* @since 18.0.0
*/
public function setEntity(IEntity $entity): void;
+
+ /**
+ * returns the entity which might provide more information, depending on
+ * the interfaces it implements
+ *
+ * @return IEntity
+ * @since 18.0.0
+ */
+ public function getEntity(): IEntity;
}