| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 22 | class Office { |
||
| 23 | |||
| 24 | use IntegerIdTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Name. |
||
| 28 | * |
||
| 29 | * @var string|null |
||
| 30 | */ |
||
| 31 | private $name; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | */ |
||
| 36 | public function __construct() { |
||
| 37 | // NOTHING TO DO |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the name. |
||
| 42 | * |
||
| 43 | * @return string|null Returns the name. |
||
| 44 | */ |
||
| 45 | public function getName(): ?string { |
||
| 46 | return $this->name; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Set the name. |
||
| 51 | * |
||
| 52 | * @param string|null $name The name. |
||
| 53 | * @return Office Returns this office. |
||
| 54 | */ |
||
| 55 | public function setName(?string $name): Office { |
||
| 58 | } |
||
| 59 | } |
||
| 60 |