| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class Product |
||
| 18 | { |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | private string $name; |
||
| 22 | |||
| 23 | private ?string $externalReference = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function getId() |
||
| 29 | { |
||
| 30 | return $this->id; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param mixed $id |
||
| 35 | */ |
||
| 36 | public function setId($id): void |
||
| 37 | { |
||
| 38 | $this->id = $id; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getName(): string |
||
| 42 | { |
||
| 43 | return $this->name; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function setName(string $name): void |
||
| 47 | { |
||
| 48 | $this->name = $name; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getExternalReference(): ?string |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setExternalReference(?string $externalReference): void |
||
| 59 | } |
||
| 60 | |||
| 61 | public function hasExternalReference(): bool |
||
| 66 |