| 1 | <?php |
||
| 10 | trait WebhookEvent |
||
| 11 | { |
||
| 12 | use Dispatchable, SerializesModels; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $event; |
||
| 16 | |||
| 17 | /** @var array */ |
||
| 18 | protected $data; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * WebhookEvent constructor. |
||
| 22 | * @param string $event |
||
| 23 | * @param array $data |
||
| 24 | */ |
||
| 25 | public function __construct(string $event, array $data) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getEvent(): string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getData(): array |
||
| 46 | } |
||
| 47 |