1 | <?php |
||
22 | final class CreateClientCommand extends CommandWithDataTransporter |
||
23 | { |
||
24 | /** |
||
25 | * @var ClientId |
||
26 | */ |
||
27 | private $clientId; |
||
28 | |||
29 | /** |
||
30 | * @var DataBag |
||
31 | */ |
||
32 | private $parameters; |
||
33 | |||
34 | /** |
||
35 | * @var UserAccountId|null |
||
36 | */ |
||
37 | private $userAccountId; |
||
38 | |||
39 | /** |
||
40 | * CreateClientCommand constructor. |
||
41 | * |
||
42 | * @param ClientId $clientId |
||
43 | * @param null|UserAccountId $userAccountId |
||
44 | * @param DataBag $parameters |
||
45 | * @param null|DataTransporter $dataTransporter |
||
46 | */ |
||
47 | protected function __construct(ClientId $clientId, ? UserAccountId $userAccountId, DataBag $parameters, ? DataTransporter $dataTransporter) |
||
54 | |||
55 | /** |
||
56 | * @param ClientId $clientId |
||
57 | * @param UserAccountId|null $userAccountId |
||
58 | * @param DataBag $parameters |
||
59 | * @param DataTransporter|null $dataTransporter |
||
60 | * |
||
61 | * @return CreateClientCommand |
||
62 | */ |
||
63 | public static function create(ClientId $clientId, ? UserAccountId $userAccountId, DataBag $parameters, ? DataTransporter $dataTransporter): CreateClientCommand |
||
67 | |||
68 | /** |
||
69 | * @return ClientId |
||
70 | */ |
||
71 | public function getClientId(): ClientId |
||
75 | |||
76 | /** |
||
77 | * @return DataBag |
||
78 | */ |
||
79 | public function getParameters(): DataBag |
||
83 | |||
84 | /** |
||
85 | * @return UserAccountId|null |
||
86 | */ |
||
87 | public function getUserAccountId(): ? UserAccountId |
||
91 | } |
||
92 |