| 1 | <?php |
||
| 21 | class Address extends Entity |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $name; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $street; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $zipcode; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | protected $city; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var Coordinate |
||
| 45 | */ |
||
| 46 | protected $coordinate; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Address constructor. |
||
| 50 | * |
||
| 51 | * @param AddressId $id |
||
| 52 | * @param string $name |
||
| 53 | * @param string $street |
||
| 54 | * @param string $zipcode |
||
| 55 | * @param string $city |
||
| 56 | * @param Coordinate $coordinate |
||
| 57 | */ |
||
| 58 | public function __construct(AddressId $id, $name, $street, $zipcode, $city, Coordinate $coordinate) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function name() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function street() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function zipcode() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return string |
||
| 95 | */ |
||
| 96 | public function city() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return Coordinate |
||
| 103 | */ |
||
| 104 | public function coordinate() |
||
| 108 | } |
||
| 109 |