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