| 1 | <?php |
||
| 9 | class Dealership |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $code; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor |
||
| 23 | * |
||
| 24 | * @param int $code |
||
| 25 | * @param string $name |
||
| 26 | */ |
||
| 27 | 4 | public function __construct( |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Return the dealeship code |
||
| 37 | * |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 1 | public function getCode(): int |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Dealership code |
||
| 47 | * |
||
| 48 | * @param int $code |
||
| 49 | */ |
||
| 50 | 1 | public function setCode(int $code) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 1 | public function getName(): string |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $name |
||
| 65 | */ |
||
| 66 | 1 | public function setName(string $name) |
|
| 70 | } |
||
| 71 |