Skip to content

Commit 7677709

Browse files
authored
Create Address.php
1 parent 216d684 commit 7677709

File tree

1 file changed

+113
-0
lines changed

1 file changed

+113
-0
lines changed

Model/Address.php

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?php
2+
/*
3+
* (c) Api Postcode <info@api-postcode.nl>
4+
*
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
7+
*/
8+
9+
namespace ApiPostcode\Model;
10+
11+
/**
12+
* Class Address
13+
*
14+
* @author Api Postcode <info@api-postcode.nl>
15+
*/
16+
class Address
17+
{
18+
/** @var string */
19+
private $street;
20+
21+
/** @var string */
22+
private $zipCode;
23+
24+
/** @var string */
25+
private $houseNumber;
26+
27+
/** @var string */
28+
private $city;
29+
30+
/** @var string */
31+
private $latitude;
32+
33+
/** @var string */
34+
private $longitude;
35+
36+
/**
37+
* @param string $street
38+
* @param string $zipCode
39+
* @param string $houseNumber
40+
* @param string $city
41+
*/
42+
public function __construct($street, $zipCode, $houseNumber, $city)
43+
{
44+
$this->street = $street;
45+
$this->zipcode = $zipCode;
46+
$this->houseNumber = $houseNumber;
47+
$this->city = $city;
48+
}
49+
50+
/**
51+
* @return string
52+
*/
53+
public function getStreet()
54+
{
55+
return $this->street;
56+
}
57+
58+
/**
59+
* @return string
60+
*/
61+
public function getZipCode()
62+
{
63+
return $this->zipCode;
64+
}
65+
66+
/**
67+
* @return string
68+
*/
69+
public function getHouseNumber()
70+
{
71+
return $this->houseNumber;
72+
}
73+
74+
/**
75+
* @return string
76+
*/
77+
public function getCity()
78+
{
79+
return $this->city;
80+
}
81+
82+
/**
83+
* @return string
84+
*/
85+
public function getLatitude()
86+
{
87+
return $this->latitude;
88+
}
89+
90+
/**
91+
* @param string $latitude
92+
*/
93+
public function setLatitude($latitude)
94+
{
95+
$this->latitude = $latitude;
96+
}
97+
98+
/**
99+
* @return string
100+
*/
101+
public function getLongitude()
102+
{
103+
return $this->longitude;
104+
}
105+
106+
/**
107+
* @param string $longitude
108+
*/
109+
public function setLongitude($longitude)
110+
{
111+
$this->longitude = $longitude;
112+
}
113+
}

0 commit comments

Comments
 (0)