We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1d0661 commit 1f68bceCopy full SHA for 1f68bce
1 file changed
src/Attributes/ListenByTrigger.php
@@ -11,13 +11,15 @@ class ListenByTrigger
11
* @param string $name
12
* @param string $description
13
* @param bool $enabled
14
+ * @param bool $anonymous event don't have user model reference
15
* @param array $variables
16
* @param array $recipients
17
*/
18
public function __construct(
19
private string $name = '',
20
private string $description = '',
21
private bool $enabled = false,
22
+ private bool $anonymous = false,
23
private array $variables = [],
24
private array $recipients = [],
25
) {
@@ -46,6 +48,14 @@ public function variables(): array
46
48
return $this->variables;
47
49
}
50
51
+ /**
52
+ * @return bool
53
+ */
54
+ public function isAnonymous(): bool
55
+ {
56
+ return $this->anonymous;
57
+ }
58
+
59
/**
60
* @return Recipient[]
61
0 commit comments