| 1 | <?php |
||
| 9 | class AccountLinkingEvent extends AbstractEvent |
||
| 10 | { |
||
| 11 | public const NAME = 'account_linking'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $timestamp; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var \Kerox\Messenger\Model\Callback\AccountLinking |
||
| 20 | */ |
||
| 21 | protected $accountLinking; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * AccountLinkingEvent constructor. |
||
| 25 | */ |
||
| 26 | 2 | public function __construct(string $senderId, string $recipientId, int $timestamp, AccountLinking $accountLinking) |
|
| 33 | |||
| 34 | 1 | public function getTimestamp(): int |
|
| 38 | |||
| 39 | 2 | public function getAccountLinking(): AccountLinking |
|
| 43 | |||
| 44 | 1 | public function getName(): string |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return \Kerox\Messenger\Event\AccountLinkingEvent |
||
| 51 | */ |
||
| 52 | 1 | public static function create(array $payload): self |
|
| 61 | } |
||
| 62 |