CheckVatResponse::getVatNumber()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Ddeboer\Vatin\Vies\Response;
4
5
class CheckVatResponse
6
{
7
    private $countryCode;
8
9
    private $vatNumber;
10
11
    private $requestDate;
12
13
    private $valid;
14
15
    private $name;
16
17
    private $address;
18
19 1
    public function getCountryCode()
20
    {
21 1
        return $this->countryCode;
22
    }
23
24 1
    public function getVatNumber()
25
    {
26 1
        return $this->vatNumber;
27
    }
28
29 1
    public function getRequestDate()
30
    {
31 1
        if (!$this->requestDate instanceof \DateTime) {
32 1
            $this->requestDate = new \DateTime($this->requestDate);
33
        }
34
35 1
        return $this->requestDate;
36
    }
37
38 1
    public function isValid()
39
    {
40 1
        return $this->valid;
41
    }
42
43 1
    public function getName()
44
    {
45 1
        return $this->name;
46
    }
47
48 1
    public function getAddress()
49
    {
50 1
        return $this->address;
51
    }
52
}