blob: cab1b14b3c1fdcd9250fc6361760888c3a00506a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}
|