1 | <?php |
||
7 | class AppRolesEvent extends AbstractEvent |
||
8 | { |
||
9 | const NAME = 'app_roles'; |
||
10 | |||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | protected $timestamp; |
||
15 | |||
16 | /** |
||
17 | * @var \Kerox\Messenger\Model\Callback\AppRoles |
||
18 | */ |
||
19 | protected $appRoles; |
||
20 | |||
21 | /** |
||
22 | * ReadEvent constructor. |
||
23 | * |
||
24 | * @param string $senderId |
||
25 | * @param string $recipientId |
||
26 | * @param int $timestamp |
||
27 | * @param \Kerox\Messenger\Model\Callback\AppRoles $appRoles |
||
28 | */ |
||
29 | 2 | public function __construct(string $senderId, string $recipientId, int $timestamp, AppRoles $appRoles) |
|
36 | |||
37 | /** |
||
38 | * @return int |
||
39 | */ |
||
40 | 1 | public function getTimestamp(): int |
|
44 | |||
45 | /** |
||
46 | * @return \Kerox\Messenger\Model\Callback\AppRoles |
||
47 | */ |
||
48 | 1 | public function getAppRoles(): AppRoles |
|
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | 1 | public function getName(): string |
|
60 | |||
61 | /** |
||
62 | * @param $payload |
||
63 | * |
||
64 | * @return \Kerox\Messenger\Event\AppRolesEvent |
||
65 | */ |
||
66 | 1 | public static function create(array $payload): AppRolesEvent |
|
75 | } |
||
76 |