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