| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Category |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @MongoDB\Id |
||
| 14 | */ |
||
| 15 | private $id; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @MongoDB\Field(type="string") |
||
| 19 | */ |
||
| 20 | private $name; |
||
| 21 | |||
| 22 | public function __toString(): string |
||
| 23 | { |
||
| 24 | return $this->name; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getId() |
||
| 28 | { |
||
| 29 | return $this->id; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getName(): ?string |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setName($name): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |