1 | <?php |
||
15 | class Address { |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @ORM\Column(name="salutation", type="string", length=16, nullable=true) |
||
21 | */ |
||
22 | private $salutation; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @ORM\Column(name="company", type="string", length=100, nullable=true) |
||
28 | */ |
||
29 | private $company; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(name="title", type="string", length=16, nullable=true) |
||
35 | */ |
||
36 | private $title; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * |
||
41 | * @ORM\Column(name="first_name", type="string", length=50, options={"default":""}, nullable=false) |
||
42 | */ |
||
43 | private $firstName = ''; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * |
||
48 | * @ORM\Column(name="last_name", type="string", length=50, options={"default":""}, nullable=false) |
||
49 | */ |
||
50 | private $lastName = ''; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ORM\Column(name="street", type="string", length=100, nullable=true) |
||
56 | */ |
||
57 | private $address; |
||
58 | |||
59 | /** |
||
60 | * @var string |
||
61 | * |
||
62 | * @ORM\Column(name="postcode", type="string", length=8, nullable=true) |
||
63 | */ |
||
64 | private $postcode; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | * |
||
69 | * @ORM\Column(name="city", type="string", length=100, nullable=true) |
||
70 | */ |
||
71 | private $city; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | * |
||
76 | * @ORM\Column(name="country", type="string", length=8, options={"default":""}, nullable=true) |
||
77 | */ |
||
78 | private $country = ''; |
||
79 | |||
80 | /** |
||
81 | * @var integer |
||
82 | * |
||
83 | * @ORM\Column(name="id", type="integer") |
||
84 | * @ORM\Id |
||
85 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
86 | */ |
||
87 | private $id; |
||
88 | |||
89 | /** |
||
90 | * Set salutation |
||
91 | * |
||
92 | * @param string $salutation |
||
93 | * @return self |
||
94 | */ |
||
95 | public function setSalutation( $salutation ) { |
||
100 | |||
101 | /** |
||
102 | * Get salutation |
||
103 | * |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getSalutation() { |
||
109 | |||
110 | /** |
||
111 | * Set company name |
||
112 | * |
||
113 | * @param string $company |
||
114 | * @return self |
||
115 | */ |
||
116 | public function setCompany( $company ) { |
||
121 | |||
122 | /** |
||
123 | * Get company name |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getCompany() { |
||
130 | |||
131 | /** |
||
132 | * Set title |
||
133 | * |
||
134 | * @param string $title |
||
135 | * @return self |
||
136 | */ |
||
137 | public function setTitle( $title ) { |
||
142 | |||
143 | /** |
||
144 | * Get title |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getTitle() { |
||
151 | |||
152 | /** |
||
153 | * Set first name |
||
154 | * |
||
155 | * @param string $firstName |
||
156 | * @return self |
||
157 | */ |
||
158 | public function setFirstName( $firstName ) { |
||
163 | |||
164 | /** |
||
165 | * Get first name |
||
166 | * |
||
167 | * @return string |
||
168 | */ |
||
169 | public function getFirstName() { |
||
172 | |||
173 | /** |
||
174 | * Set last name |
||
175 | * |
||
176 | * @param string $lastName |
||
177 | * @return self |
||
178 | */ |
||
179 | public function setLastName( $lastName ) { |
||
184 | |||
185 | /** |
||
186 | * Get last name |
||
187 | * |
||
188 | * @return string |
||
189 | */ |
||
190 | public function getLastName() { |
||
193 | |||
194 | /** |
||
195 | * Set address (street, etc) |
||
196 | * |
||
197 | * @param string $address |
||
198 | * @return self |
||
199 | */ |
||
200 | public function setAddress( $address ) { |
||
205 | |||
206 | /** |
||
207 | * Get address (street, etc) |
||
208 | * |
||
209 | * @return string |
||
210 | */ |
||
211 | public function getAddress() { |
||
214 | |||
215 | /** |
||
216 | * Set postcode |
||
217 | * |
||
218 | * @param string $postcode |
||
219 | * @return self |
||
220 | */ |
||
221 | public function setPostcode( $postcode ) { |
||
226 | |||
227 | /** |
||
228 | * Get postcode |
||
229 | * |
||
230 | * @return string |
||
231 | */ |
||
232 | public function getPostcode() { |
||
235 | |||
236 | /** |
||
237 | * Set city |
||
238 | * |
||
239 | * @param string $city |
||
240 | * @return self |
||
241 | */ |
||
242 | public function setCity( $city ) { |
||
247 | |||
248 | /** |
||
249 | * Get city |
||
250 | * |
||
251 | * @return string |
||
252 | */ |
||
253 | public function getCity() { |
||
256 | |||
257 | /** |
||
258 | * Set country |
||
259 | * |
||
260 | * @param string $country |
||
261 | * @return self |
||
262 | */ |
||
263 | public function setCountry( $country ) { |
||
268 | |||
269 | /** |
||
270 | * Get country |
||
271 | * |
||
272 | * @return string |
||
273 | */ |
||
274 | public function getCountry() { |
||
277 | |||
278 | /** |
||
279 | * @return int |
||
280 | */ |
||
281 | public function getId() { |
||
284 | |||
285 | /** |
||
286 | * @param int $id |
||
287 | */ |
||
288 | public function setId( $id ) { |
||
291 | } |
||
292 |