| 1 | <?php |
||
| 4 | class RawEvent extends AbstractEvent |
||
| 5 | { |
||
| 6 | |||
| 7 | const NAME = 'raw'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $raw; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * RawEvent constructor. |
||
| 16 | * |
||
| 17 | * @param string $senderId |
||
| 18 | * @param string $recipientId |
||
| 19 | * @param array $raw |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(string $senderId, string $recipientId, array $raw) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public function getRaw(): array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getName(): string |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param array $payload |
||
| 46 | * @return \Kerox\Messenger\Event\RawEvent |
||
| 47 | */ |
||
| 48 | 1 | public static function create(array $payload): RawEvent |
|
| 56 | } |
||
| 57 |