1 | <?php |
||
22 | class ClientParametersUpdatedEvent extends Event |
||
23 | { |
||
24 | /** |
||
25 | * @var ClientId |
||
26 | */ |
||
27 | private $clientId; |
||
28 | |||
29 | /** |
||
30 | * @var DataBag |
||
31 | */ |
||
32 | private $parameters; |
||
33 | |||
34 | /** |
||
35 | * ClientParametersUpdatedEvent constructor. |
||
36 | * |
||
37 | * @param ClientId $clientId |
||
38 | * @param DataBag $parameters |
||
39 | */ |
||
40 | protected function __construct(ClientId $clientId, DataBag $parameters) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSchema(): string |
||
53 | |||
54 | /** |
||
55 | * @param ClientId $clientId |
||
56 | * @param DataBag $parameters |
||
57 | * |
||
58 | * @return ClientParametersUpdatedEvent |
||
59 | */ |
||
60 | public static function create(ClientId $clientId, DataBag $parameters): self |
||
64 | |||
65 | /** |
||
66 | * @return ClientId |
||
67 | */ |
||
68 | public function getClientId(): ClientId |
||
72 | |||
73 | /** |
||
74 | * @return DataBag |
||
75 | */ |
||
76 | public function getParameters(): DataBag |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getDomainId(): Id |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getPayload() |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public static function createFromJson(\stdClass $json): DomainObject |
||
112 | } |
||
113 |