1 | <?php |
||
7 | class RawEvent extends AbstractEvent |
||
8 | { |
||
9 | public const NAME = 'raw'; |
||
10 | |||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $raw; |
||
15 | |||
16 | /** |
||
17 | * RawEvent constructor. |
||
18 | */ |
||
19 | 2 | public function __construct(string $senderId, string $recipientId, array $raw) |
|
25 | |||
26 | 1 | public function getRaw(): array |
|
30 | |||
31 | 1 | public function getName(): string |
|
35 | |||
36 | /** |
||
37 | * @return \Kerox\Messenger\Event\RawEvent |
||
38 | */ |
||
39 | 1 | public static function create(array $payload): self |
|
47 | } |
||
48 |