webhook skip own

This commit is contained in:
Yuri Kuznetsov
2025-07-08 13:34:19 +03:00
parent 335301cefd
commit 7b30ba59dd
20 changed files with 293 additions and 114 deletions
+10
View File
@@ -64,4 +64,14 @@ class Webhook extends Entity
{
return $this->get('entityType');
}
public function setSkipOwn(bool $skipOwn): self
{
return $this->set('skipOwn', $skipOwn);
}
public function skipOwn(): bool
{
return (bool) $this->get('skipOwn');
}
}
@@ -59,6 +59,11 @@ class WebhookEventQueueItem extends Entity
return $this->get('targetId');
}
public function getUserId(): ?string
{
return $this->get('userId');
}
public function getData(): stdClass
{
return $this->get('data') ?? (object) [];
@@ -69,6 +74,11 @@ class WebhookEventQueueItem extends Entity
return $this->set('event', $event);
}
public function setUserId(?string $userId): self
{
return $this->set('userId', $userId);
}
public function setTarget(LinkParent|Entity $target): self
{
return $this->setRelatedLinkOrEntity('target', $target);