1 | <?php |
||
6 | class OptinEvent extends AbstractCallbackEvent |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | protected $timestamp; |
||
13 | |||
14 | /** |
||
15 | * @var \Kerox\Messenger\Model\Callback\Optin |
||
16 | */ |
||
17 | protected $optin; |
||
18 | |||
19 | /** |
||
20 | * OptinEvent constructor. |
||
21 | * |
||
22 | * @param string $senderId |
||
23 | * @param string $recipientId |
||
24 | * @param int $timestamp |
||
25 | * @param \Kerox\Messenger\Model\Callback\Optin $optin |
||
26 | */ |
||
27 | public function __construct(string $senderId, string $recipientId, int $timestamp, Optin $optin) |
||
34 | |||
35 | /** |
||
36 | * @return int |
||
37 | */ |
||
38 | public function getTimestamp(): int |
||
42 | |||
43 | /** |
||
44 | * @return \Kerox\Messenger\Model\Callback\Optin |
||
45 | */ |
||
46 | public function getOptin(): Optin |
||
50 | } |
||
51 |