| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Category |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | public function getId(): string |
||
| 21 | { |
||
| 22 | return $this->id; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $id |
||
| 27 | */ |
||
| 28 | public function setId(string $id) |
||
| 29 | { |
||
| 30 | $this->id = $id; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getName(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $name |
||
| 43 | */ |
||
| 44 | public function setName(string $name) |
||
| 47 | } |
||
| 48 | } |
||
| 49 |