1 | <?php |
||
22 | class ClientOwnerChangedEvent extends Event |
||
23 | { |
||
24 | /** |
||
25 | * @var ClientId |
||
26 | */ |
||
27 | private $clientId; |
||
28 | |||
29 | /** |
||
30 | * @var UserAccountId |
||
31 | */ |
||
32 | private $newOwnerId; |
||
33 | |||
34 | /** |
||
35 | * ClientOwnerChangedEvent constructor. |
||
36 | * |
||
37 | * @param ClientId $clientId |
||
38 | * @param UserAccountId $newOwnerId |
||
39 | */ |
||
40 | protected function __construct(ClientId $clientId, UserAccountId $newOwnerId) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSchema(): string |
||
53 | |||
54 | /** |
||
55 | * @param ClientId $clientId |
||
56 | * @param UserAccountId $newOwnerId |
||
57 | * |
||
58 | * @return ClientOwnerChangedEvent |
||
59 | */ |
||
60 | public static function create(ClientId $clientId, UserAccountId $newOwnerId): self |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public static function createFromJson(\stdClass $json): DomainObject |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getDomainId(): Id |
||
86 | |||
87 | /** |
||
88 | * @return ClientId |
||
89 | */ |
||
90 | public function getClientId(): ClientId |
||
94 | |||
95 | /** |
||
96 | * @return UserAccountId |
||
97 | */ |
||
98 | public function getNewOwnerId(): UserAccountId |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function getPayload() |
||
112 | } |
||
113 |