street = $street; $this->city = $city; $this->zip = $zip; } /** * Gets full address. * * @return string */ public function getFullAddress(): string { return sprintf( '%s%s, %s %s', $this->street, ( $this->houseNumber !== null ? ' ' . $this->houseNumber : '' ), $this->city, $this->zip ); } /** * Gets street. * * @return string|null */ public function getStreet(): ?string { return $this->street; } /** * Gets city. * * @return string|null */ public function getCity(): ?string { return $this->city; } /** * Gets zip. * * @return string|null */ public function getZip(): ?string { return $this->zip; } /** * Gets house number. * * @return string|null */ public function getHouseNumber(): ?string { return $this->houseNumber; } /** * Sets house number. * * @param string|null $houseNumber House number. */ public function setHouseNumber( ?string $houseNumber ): void { $this->houseNumber = $houseNumber; } /** * Gets longitude. * * @return string|null */ public function getLongitude(): ?string { return $this->longitude; } /** * Sets longitude. * * @param string|null $longitude Longitude. * * @return void */ public function setLongitude( ?string $longitude ): void { $this->longitude = $longitude; } /** * Gets latitude. * * @return string|null */ public function getLatitude(): ?string { return $this->latitude; } /** * Sets latitude. * * @param string|null $latitude Latitude. * * @return void */ public function setLatitude( ?string $latitude ): void { $this->latitude = $latitude; } /** * Gets county. * * @return string|null */ public function getCounty(): ?string { return $this->county; } /** * Sets county. * * @param string|null $county County. * * @return void */ public function setCounty( ?string $county ): void { $this->county = $county; } /** * Export. * * @return array */ public function export(): array { return get_object_vars( $this ); } }