CheckVatApproxResponse::getTraderStreetMatch()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace DMT\VatServiceEu\Response;
4
5
use DateTime;
6
use JMS\Serializer\Annotation as JMS;
7
8
/**
9
 * Class CheckVatApproxResponse
10
 *
11
 * @JMS\AccessType("public_method")
12
 * @JMS\XmlNamespace(uri="urn:ec.europa.eu:taxud:vies:services:checkVat:types", prefix="ns1")
13
 * @JMS\XmlRoot("checkVatApproxResponse")
14
 */
15
class CheckVatApproxResponse implements ResponseInterface
16
{
17
    /**
18
     * @JMS\Type("string")
19
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
20
     *
21
     * @var string
22
     */
23
    protected $countryCode;
24
                                    
25
    /**
26
     * @JMS\Type("string")
27
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
28
     *
29
     * @var string
30
     */
31
    protected $vatNumber;
32
                                    
33
    /**
34
     * @JMS\Type("DateTime<'Y-m-dP'>")
35
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
36
     *
37
     * @var DateTime
38
     */
39
    protected $requestDate;
40
                                    
41
    /**
42
     * @JMS\Type("boolean")
43
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
44
     *
45
     * @var bool
46
     */
47
    protected $valid;
48
                                    
49
    /**
50
     * @JMS\Type("string")
51
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
52
     *
53
     * @var string
54
     */
55
    protected $traderName;
56
                                    
57
    /**
58
     * @JMS\Type("string")
59
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
60
     *
61
     * @var string
62
     */
63
    protected $traderCompanyType;
64
                                    
65
    /**
66
     * @JMS\Type("string")
67
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
68
     *
69
     * @var string
70
     */
71
    protected $traderAddress;
72
                                    
73
    /**
74
     * @JMS\Type("string")
75
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
76
     *
77
     * @var string
78
     */
79
    protected $traderStreet;
80
                                    
81
    /**
82
     * @JMS\Type("string")
83
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
84
     *
85
     * @var string
86
     */
87
    protected $traderPostcode;
88
                                    
89
    /**
90
     * @JMS\Type("string")
91
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
92
     *
93
     * @var string
94
     */
95
    protected $traderCity;
96
                                    
97
    /**
98
     * @JMS\Type("string")
99
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
100
     *
101
     * @var string
102
     */
103
    protected $traderNameMatch;
104
                                    
105
    /**
106
     * @JMS\Type("string")
107
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
108
     *
109
     * @var string
110
     */
111
    protected $traderCompanyTypeMatch;
112
                                    
113
    /**
114
     * @JMS\Type("string")
115
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
116
     *
117
     * @var string
118
     */
119
    protected $traderStreetMatch;
120
                                    
121
    /**
122
     * @JMS\Type("string")
123
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
124
     *
125
     * @var string
126
     */
127
    protected $traderPostcodeMatch;
128
                                    
129
    /**
130
     * @JMS\Type("string")
131
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
132
     *
133
     * @var string
134
     */
135
    protected $traderCityMatch;
136
                                    
137
    /**
138
     * @JMS\Type("string")
139
     * @JMS\XmlElement(cdata=false, namespace="urn:ec.europa.eu:taxud:vies:services:checkVat:types")
140
     *
141
     * @var string
142
     */
143
    protected $requestIdentifier;
144
                                    
145
    /**
146
     * @return string
147
     */
148 2
    public function getCountryCode(): ?string
149
    {
150 2
        return $this->countryCode;
151
    }
152
153
    /**
154
     * @param string $countryCode
155
     */
156 2
    public function setCountryCode(string $countryCode): void
157
    {
158 2
        $this->countryCode = $countryCode;
159
    }
160
                                    
161
    /**
162
     * @return string
163
     */
164 2
    public function getVatNumber(): ?string
165
    {
166 2
        return $this->vatNumber;
167
    }
168
169
    /**
170
     * @param string $vatNumber
171
     */
172 2
    public function setVatNumber(string $vatNumber): void
173
    {
174 2
        $this->vatNumber = $vatNumber;
175
    }
176
                                    
177
    /**
178
     * @return DateTime
179
     */
180 1
    public function getRequestDate(): ?DateTime
181
    {
182 1
        return $this->requestDate;
183
    }
184
185
    /**
186
     * @param DateTime $requestDate
187
     */
188 2
    public function setRequestDate(DateTime $requestDate): void
189
    {
190 2
        $this->requestDate = $requestDate;
191
    }
192
                                    
193
    /**
194
     * @return bool
195
     */
196 2
    public function isValid(): ?bool
197
    {
198 2
        return $this->valid;
199
    }
200
201
    /**
202
     * @param bool $valid
203
     */
204 2
    public function setValid(bool $valid): void
205
    {
206 2
        $this->valid = $valid;
207
    }
208
                                    
209
    /**
210
     * @return string
211
     */
212 1
    public function getTraderName(): ?string
213
    {
214 1
        return $this->traderName;
215
    }
216
217
    /**
218
     * @param string $traderName
219
     */
220 2
    public function setTraderName(string $traderName): void
221
    {
222 2
        $this->traderName = $traderName;
223
    }
224
                                    
225
    /**
226
     * @return string
227
     */
228 1
    public function getTraderCompanyType(): ?string
229
    {
230 1
        return $this->traderCompanyType;
231
    }
232
233
    /**
234
     * @param string $traderCompanyType
235
     */
236 2
    public function setTraderCompanyType(string $traderCompanyType): void
237
    {
238 2
        $this->traderCompanyType = $traderCompanyType;
239
    }
240
                                    
241
    /**
242
     * @return string
243
     */
244 1
    public function getTraderAddress(): ?string
245
    {
246 1
        return $this->traderAddress;
247
    }
248
249
    /**
250
     * @param string $traderAddress
251
     */
252 2
    public function setTraderAddress(string $traderAddress): void
253
    {
254 2
        $this->traderAddress = $traderAddress;
255
    }
256
                                    
257
    /**
258
     * @return string
259
     */
260 1
    public function getTraderStreet(): ?string
261
    {
262 1
        return $this->traderStreet;
263
    }
264
265
    /**
266
     * @param string $traderStreet
267
     */
268 1
    public function setTraderStreet(string $traderStreet): void
269
    {
270 1
        $this->traderStreet = $traderStreet;
271
    }
272
                                    
273
    /**
274
     * @return string
275
     */
276 1
    public function getTraderPostcode(): ?string
277
    {
278 1
        return $this->traderPostcode;
279
    }
280
281
    /**
282
     * @param string $traderPostcode
283
     */
284 1
    public function setTraderPostcode(string $traderPostcode): void
285
    {
286 1
        $this->traderPostcode = $traderPostcode;
287
    }
288
                                    
289
    /**
290
     * @return string
291
     */
292 1
    public function getTraderCity(): ?string
293
    {
294 1
        return $this->traderCity;
295
    }
296
297
    /**
298
     * @param string $traderCity
299
     */
300 1
    public function setTraderCity(string $traderCity): void
301
    {
302 1
        $this->traderCity = $traderCity;
303
    }
304
                                    
305
    /**
306
     * @return string
307
     */
308 1
    public function getTraderNameMatch(): ?string
309
    {
310 1
        return $this->traderNameMatch;
311
    }
312
313
    /**
314
     * @param string $traderNameMatch
315
     */
316 1
    public function setTraderNameMatch(string $traderNameMatch): void
317
    {
318 1
        $this->traderNameMatch = $traderNameMatch;
319
    }
320
                                    
321
    /**
322
     * @return string
323
     */
324 1
    public function getTraderCompanyTypeMatch(): ?string
325
    {
326 1
        return $this->traderCompanyTypeMatch;
327
    }
328
329
    /**
330
     * @param string $traderCompanyTypeMatch
331
     */
332 1
    public function setTraderCompanyTypeMatch(string $traderCompanyTypeMatch): void
333
    {
334 1
        $this->traderCompanyTypeMatch = $traderCompanyTypeMatch;
335
    }
336
                                    
337
    /**
338
     * @return string
339
     */
340 1
    public function getTraderStreetMatch(): ?string
341
    {
342 1
        return $this->traderStreetMatch;
343
    }
344
345
    /**
346
     * @param string $traderStreetMatch
347
     */
348 1
    public function setTraderStreetMatch(string $traderStreetMatch): void
349
    {
350 1
        $this->traderStreetMatch = $traderStreetMatch;
351
    }
352
                                    
353
    /**
354
     * @return string
355
     */
356 1
    public function getTraderPostcodeMatch(): ?string
357
    {
358 1
        return $this->traderPostcodeMatch;
359
    }
360
361
    /**
362
     * @param string $traderPostcodeMatch
363
     */
364 1
    public function setTraderPostcodeMatch(string $traderPostcodeMatch): void
365
    {
366 1
        $this->traderPostcodeMatch = $traderPostcodeMatch;
367
    }
368
                                    
369
    /**
370
     * @return string
371
     */
372 1
    public function getTraderCityMatch(): ?string
373
    {
374 1
        return $this->traderCityMatch;
375
    }
376
377
    /**
378
     * @param string $traderCityMatch
379
     */
380 1
    public function setTraderCityMatch(string $traderCityMatch): void
381
    {
382 1
        $this->traderCityMatch = $traderCityMatch;
383
    }
384
                                    
385
    /**
386
     * @return string
387
     */
388 1
    public function getRequestIdentifier(): ?string
389
    {
390 1
        return $this->requestIdentifier;
391
    }
392
393
    /**
394
     * @param string $requestIdentifier
395
     */
396 2
    public function setRequestIdentifier(string $requestIdentifier): void
397
    {
398 2
        $this->requestIdentifier = $requestIdentifier;
399
    }
400
}
401