Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | class CreateFamilyLog implements CommandProtocol |
||
20 | { |
||
21 | private NameField $label; |
||
22 | private ?string $parentUuid; |
||
23 | |||
24 | public function __construct(NameField $label, ?string $parentUuid = null) |
||
25 | { |
||
26 | $this->label = $label; |
||
27 | $this->parentUuid = $parentUuid; |
||
28 | } |
||
29 | |||
30 | public function label(): NameField |
||
31 | { |
||
32 | return $this->label; |
||
33 | } |
||
34 | |||
35 | public function parent(): ?string |
||
38 | } |
||
39 | } |
||
40 |