| 1 |
<?php declare(strict_types=1); |
| 2 |
/** |
| 3 |
* Created by PhpStorm. |
| 4 |
* User: richardperdaan |
| 5 |
* Date: 2019-06-18 |
| 6 |
* Time: 15:49 |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace MyParcelNL\Sdk\src\Model; |
| 10 |
|
| 11 |
class FullStreet |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @var string |
| 15 |
*/ |
| 16 |
|
| 17 |
private $street; |
| 18 |
/** |
| 19 |
* @var int|null |
| 20 |
*/ |
| 21 |
|
| 22 |
private $number; |
| 23 |
/** |
| 24 |
* @var string|null |
| 25 |
*/ |
| 26 |
|
| 27 |
private $number_suffix; |
| 28 |
/** |
| 29 |
* @var string|null |
| 30 |
*/ |
| 31 |
private $box_number; |
| 32 |
|
| 33 |
/** |
| 34 |
* @param string $street |
| 35 |
* @param int $number |
| 36 |
* @param string $suffix |
| 37 |
* @param string $boxNumber |
| 38 |
*/ |
| 39 |
public function __construct(string $street, ?int $number, ?string $suffix, ?string $boxNumber) |
| 40 |
{ |
| 41 |
$this->street = $street; |
| 42 |
$this->number = $number; |
| 43 |
$this->number_suffix = $suffix; |
| 44 |
$this->box_number = $boxNumber; |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* @return string |
| 49 |
*/ |
| 50 |
public function getStreet(): string |
| 51 |
{ |
| 52 |
return $this->street; |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* @return int |
| 57 |
*/ |
| 58 |
public function getNumber(): ?int |
| 59 |
{ |
| 60 |
return $this->number; |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* @return string |
| 65 |
*/ |
| 66 |
public function getNumberSuffix(): ?string |
| 67 |
{ |
| 68 |
return $this->number_suffix; |
| 69 |
} |
| 70 |
|
| 71 |
/** |
| 72 |
* @return string |
| 73 |
*/ |
| 74 |
public function getBoxNumber(): ?string |
| 75 |
{ |
| 76 |
return $this->box_number; |
| 77 |
} |
| 78 |
} |
| 79 |
|