1 | <?php |
||
11 | class CommandMetadata |
||
12 | { |
||
13 | /** @var Guid|null */ |
||
14 | private $commandId = null; |
||
15 | |||
16 | /** @var Guid|null */ |
||
17 | private $correlationId = null; |
||
18 | |||
19 | 1 | public function getCommandId():?Guid |
|
23 | |||
24 | /** |
||
25 | * @param Guid $commandId |
||
26 | * @return static |
||
27 | */ |
||
28 | 2 | public function withCommandId(Guid $commandId) |
|
34 | |||
35 | /** |
||
36 | * @return static |
||
37 | */ |
||
38 | 1 | public function withoutCommandId() |
|
44 | |||
45 | 1 | public function getCorrelationId():?Guid |
|
49 | |||
50 | /** |
||
51 | * @param Guid $correlationId |
||
52 | * @return static |
||
53 | */ |
||
54 | 1 | public function withCorrelationId(Guid $correlationId) |
|
60 | |||
61 | /** |
||
62 | * @return static |
||
63 | */ |
||
64 | 1 | public function withoutCorrelationId() |
|
70 | } |