| 1 | <?php |
||
| 17 | class Address |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $street; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $zipcode; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $city; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Address constructor. |
||
| 36 | * |
||
| 37 | * @param string $street |
||
| 38 | * @param string $zipcode |
||
| 39 | * @param string $city |
||
| 40 | */ |
||
| 41 | public function __construct($street, $zipcode, $city) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function zipcode() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $zipcode |
||
| 58 | */ |
||
| 59 | public function setZipcode($zipcode) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function city() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string $city |
||
| 74 | */ |
||
| 75 | public function setCity($city) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return string |
||
| 82 | */ |
||
| 83 | public function street() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param string $street |
||
| 90 | */ |
||
| 91 | public function setStreet($street) |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @param Address $other |
||
| 98 | * |
||
| 99 | * @return bool |
||
| 100 | */ |
||
| 101 | public function equals(Address $other) |
||
| 108 | } |
||
| 109 |