1 | <?php |
||
21 | class ClientDeletedEvent extends Event |
||
22 | { |
||
23 | /** |
||
24 | * @var ClientId |
||
25 | */ |
||
26 | private $clientId; |
||
27 | |||
28 | /** |
||
29 | * ClientDeletedEvent constructor. |
||
30 | * |
||
31 | * @param ClientId $clientId |
||
32 | */ |
||
33 | protected function __construct(ClientId $clientId) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public static function getSchema(): string |
||
45 | |||
46 | /** |
||
47 | * @param ClientId $clientId |
||
48 | * |
||
49 | * @return ClientDeletedEvent |
||
50 | */ |
||
51 | public static function create(ClientId $clientId): self |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public static function createFromJson(\stdClass $json): DomainObject |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getDomainId(): Id |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function getPayload() |
||
80 | |||
81 | /** |
||
82 | * @return ClientId |
||
83 | */ |
||
84 | public function getClientId(): ClientId |
||
88 | } |
||
89 |