summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces/Actor/PersonInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Interfaces/Actor/PersonInterface.php')
-rw-r--r--lib/Interfaces/Actor/PersonInterface.php35
1 files changed, 25 insertions, 10 deletions
diff --git a/lib/Interfaces/Actor/PersonInterface.php b/lib/Interfaces/Actor/PersonInterface.php
index 5e843b44..084b277d 100644
--- a/lib/Interfaces/Actor/PersonInterface.php
+++ b/lib/Interfaces/Actor/PersonInterface.php
@@ -126,6 +126,22 @@ class PersonInterface implements IActivityPubInterface {
/**
+ * @param ACore $activity
+ * @param ACore $item
+ *
+ * @throws InvalidOriginException
+ */
+ public function activity(Acore $activity, ACore $item) {
+ /** @var Person $item */
+ $activity->checkOrigin($item->getId());
+
+ if ($activity->getType() === Update::TYPE) {
+ $this->updateActor($item, $activity);
+ }
+ }
+
+
+ /**
* @param ACore $person
*/
public function save(ACore $person) {
@@ -140,18 +156,9 @@ class PersonInterface implements IActivityPubInterface {
/**
- * @param ACore $activity
* @param ACore $item
- *
- * @throws InvalidOriginException
*/
- public function activity(Acore $activity, ACore $item) {
- /** @var Person $item */
- $activity->checkOrigin($item->getId());
-
- if ($activity->getType() === Update::TYPE) {
- $this->updateActor($item, $activity);
- }
+ public function update(ACore $item) {
}
@@ -166,6 +173,14 @@ class PersonInterface implements IActivityPubInterface {
/**
+ * @param ACore $item
+ * @param string $source
+ */
+ public function event(ACore $item, string $source) {
+ }
+
+
+ /**
* @param Person $actor
* @param ACore $activity
*/