summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces/IActivityPubInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Interfaces/IActivityPubInterface.php')
-rw-r--r--lib/Interfaces/IActivityPubInterface.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/Interfaces/IActivityPubInterface.php b/lib/Interfaces/IActivityPubInterface.php
index d0dcc4c1..fe7f4d99 100644
--- a/lib/Interfaces/IActivityPubInterface.php
+++ b/lib/Interfaces/IActivityPubInterface.php
@@ -62,8 +62,8 @@ interface IActivityPubInterface {
/**
* @param string $id
*
- * @throws ItemNotFoundException
* @return ACore
+ * @throws ItemNotFoundException
*/
public function getItemById(string $id): ACore;
@@ -86,6 +86,23 @@ interface IActivityPubInterface {
/**
+ * Update the current item.
+ *
+ * @param ACore $item
+ */
+ public function update(ACore $item);
+
+
+ /**
+ * Event on the current item.
+ *
+ * @param ACore $item
+ * @param string $source
+ */
+ public function event(ACore $item, string $source);
+
+
+ /**
* Delete the current item.
*
* @param ACore $item