| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CategoryView |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $id; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * CategoryView constructor. |
||
| 20 | * |
||
| 21 | * @param string $id |
||
| 22 | * @param string $name |
||
| 23 | */ |
||
| 24 | public function __construct(string $id, string $name) |
||
| 25 | { |
||
| 26 | $this->id = $id; |
||
| 27 | $this->name = $name; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getId(): string |
||
| 31 | { |
||
| 32 | return $this->id; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getName(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | public function changeName(string $name) |
||
| 43 | } |
||
| 44 | } |
||
| 45 |