| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UpdateCategoryCommand implements CommandInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var UuidInterface |
||
| 11 | */ |
||
| 12 | private $id; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $name; |
||
| 17 | /** |
||
| 18 | * @var ?string |
||
| 19 | */ |
||
| 20 | private $description; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param UuidInterface $id |
||
| 24 | * @param string $name |
||
| 25 | * @param ?string $description |
||
| 26 | */ |
||
| 27 | 2 | public function __construct(UuidInterface $id, |
|
| 28 | string $name, |
||
| 29 | ?string $description |
||
| 30 | ) |
||
| 31 | { |
||
| 32 | 2 | $this->id = $id; |
|
| 33 | 2 | $this->name = $name; |
|
| 34 | 2 | $this->description = $description; |
|
| 35 | 2 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return UuidInterface |
||
| 39 | */ |
||
| 40 | 2 | public function getId(): UuidInterface |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 2 | public function getName(): string |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return ?string |
||
| 55 | */ |
||
| 56 | 2 | public function getDescription(): ?string |
|
| 61 |