Address::setSalutation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Entities;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * @since 2.0
11
 *
12
 * @ORM\Table( name="address" )
13
 * @ORM\Entity
14
 */
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 ) {
96
		$this->salutation = $salutation;
97
98
		return $this;
99
	}
100
101
	/**
102
	 * Get salutation
103
	 *
104
	 * @return string
105
	 */
106
	public function getSalutation() {
107
		return $this->salutation;
108
	}
109
110
	/**
111
	 * Set company name
112
	 *
113
	 * @param string $company
114
	 * @return self
115
	 */
116
	public function setCompany( $company ) {
117
		$this->company = $company;
118
119
		return $this;
120
	}
121
122
	/**
123
	 * Get company name
124
	 *
125
	 * @return string
126
	 */
127
	public function getCompany() {
128
		return $this->company;
129
	}
130
131
	/**
132
	 * Set title
133
	 *
134
	 * @param string $title
135
	 * @return self
136
	 */
137
	public function setTitle( $title ) {
138
		$this->title = $title;
139
140
		return $this;
141
	}
142
143
	/**
144
	 * Get title
145
	 *
146
	 * @return string
147
	 */
148
	public function getTitle() {
149
		return $this->title;
150
	}
151
152
	/**
153
	 * Set first name
154
	 *
155
	 * @param string $firstName
156
	 * @return self
157
	 */
158
	public function setFirstName( $firstName ) {
159
		$this->firstName = $firstName;
160
161
		return $this;
162
	}
163
164
	/**
165
	 * Get first name
166
	 *
167
	 * @return string
168
	 */
169
	public function getFirstName() {
170
		return $this->firstName;
171
	}
172
173
	/**
174
	 * Set last name
175
	 *
176
	 * @param string $lastName
177
	 * @return self
178
	 */
179
	public function setLastName( $lastName ) {
180
		$this->lastName = $lastName;
181
182
		return $this;
183
	}
184
185
	/**
186
	 * Get last name
187
	 *
188
	 * @return string
189
	 */
190
	public function getLastName() {
191
		return $this->lastName;
192
	}
193
194
	/**
195
	 * Set address (street, etc)
196
	 *
197
	 * @param string $address
198
	 * @return self
199
	 */
200
	public function setAddress( $address ) {
201
		$this->address = $address;
202
203
		return $this;
204
	}
205
206
	/**
207
	 * Get address (street, etc)
208
	 *
209
	 * @return string
210
	 */
211
	public function getAddress() {
212
		return $this->address;
213
	}
214
215
	/**
216
	 * Set postcode
217
	 *
218
	 * @param string $postcode
219
	 * @return self
220
	 */
221
	public function setPostcode( $postcode ) {
222
		$this->postcode = $postcode;
223
224
		return $this;
225
	}
226
227
	/**
228
	 * Get postcode
229
	 *
230
	 * @return string
231
	 */
232
	public function getPostcode() {
233
		return $this->postcode;
234
	}
235
236
	/**
237
	 * Set city
238
	 *
239
	 * @param string $city
240
	 * @return self
241
	 */
242
	public function setCity( $city ) {
243
		$this->city = $city;
244
245
		return $this;
246
	}
247
248
	/**
249
	 * Get city
250
	 *
251
	 * @return string
252
	 */
253
	public function getCity() {
254
		return $this->city;
255
	}
256
257
	/**
258
	 * Set country
259
	 *
260
	 * @param string $country
261
	 * @return self
262
	 */
263
	public function setCountry( $country ) {
264
		$this->country = $country;
265
266
		return $this;
267
	}
268
269
	/**
270
	 * Get country
271
	 *
272
	 * @return string
273
	 */
274
	public function getCountry() {
275
		return $this->country;
276
	}
277
278
	/**
279
	 * @return int
280
	 */
281
	public function getId() {
282
		return $this->id;
283
	}
284
285
	/**
286
	 * @param int $id
287
	 */
288
	public function setId( $id ) {
289
		$this->id = $id;
290
	}
291
}
292