Skip to content

Commit 1f68bce

Browse files
committed
trigger added
1 parent b1d0661 commit 1f68bce

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Attributes/ListenByTrigger.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ class ListenByTrigger
1111
* @param string $name
1212
* @param string $description
1313
* @param bool $enabled
14+
* @param bool $anonymous event don't have user model reference
1415
* @param array $variables
1516
* @param array $recipients
1617
*/
1718
public function __construct(
1819
private string $name = '',
1920
private string $description = '',
2021
private bool $enabled = false,
22+
private bool $anonymous = false,
2123
private array $variables = [],
2224
private array $recipients = [],
2325
) {
@@ -46,6 +48,14 @@ public function variables(): array
4648
return $this->variables;
4749
}
4850

51+
/**
52+
* @return bool
53+
*/
54+
public function isAnonymous(): bool
55+
{
56+
return $this->anonymous;
57+
}
58+
4959
/**
5060
* @return Recipient[]
5161
*/

0 commit comments

Comments
 (0)