Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | class Category |
||
9 | { |
||
10 | /** |
||
11 | * @var UuidInterface |
||
12 | */ |
||
13 | private $id; |
||
14 | |||
15 | /** |
||
16 | * @var NotEmptyString |
||
17 | */ |
||
18 | private $name; |
||
19 | |||
20 | /** |
||
21 | * @param UuidInterface $id |
||
22 | * @param NotEmptyString $name |
||
23 | */ |
||
24 | public function __construct( |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return UuidInterface |
||
34 | */ |
||
35 | public function getId(): UuidInterface |
||
36 | { |
||
37 | return $this->id; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return NotEmptyString |
||
42 | */ |
||
43 | public function getName(): NotEmptyString |
||
46 | } |
||
47 | } |
||
48 |