diff options
Diffstat (limited to 'src/Events/Event.php')
| -rw-r--r-- | src/Events/Event.php | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Events/Event.php b/src/Events/Event.php new file mode 100644 index 0000000..cab1b14 --- /dev/null +++ b/src/Events/Event.php @@ -0,0 +1,16 @@ +<?php + +namespace App\Events; + +use App\Types\EventType; + +abstract class Event +{ +  public function __construct( +    protected EventType $type, +  ) +  {} + +  abstract public function fromJson(string $json): static; +  abstract public function toJsonEncodeable(): array; +}  | 
