blob: 7dbf242380a01240e077010af6056d7f6ee50649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
namespace App\Events;
use App\Types\EventType;
abstract class Event
{
public function __construct(
protected EventType $type,
)
{}
abstract public function fromJson(string $json): self;
/**
* @return array<string, mixed>
*/
abstract public function toJsonEncodeable(): array;
}
|