| 1 | <?php |
||
| 4 | abstract class AbstractCallbackEvent |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $senderId; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $recipientId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | protected $timestamp; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * AbstractCallbackEvent constructor. |
||
| 24 | * |
||
| 25 | * @param string $senderId |
||
| 26 | * @param string $recipientId |
||
| 27 | * @param int $timestamp |
||
| 28 | */ |
||
| 29 | public function __construct(string $senderId, string $recipientId, int $timestamp) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getSenderId(): string |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getRecipientId(): string |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function getTimestamp(): int |
||
| 59 | } |