Completed
Push — master ( 4888c4...2c579f )
by David de
02:16
created

CheckVatResponse   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
c 2
b 0
f 0
lcom 1
cbo 0
dl 0
loc 48
ccs 15
cts 15
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCountryCode() 0 4 1
A getVatNumber() 0 4 1
A getRequestDate() 0 8 2
A isValid() 0 4 1
A getName() 0 4 1
A getAddress() 0 4 1
1
<?php
2
3
namespace Ddeboer\Vatin\Vies\Response;
4
5
class CheckVatResponse
6
{
7
    protected $countryCode;
8
9
    protected $vatNumber;
10
11
    protected $requestDate;
12
13
    protected $valid;
14
15
    protected $name;
16
17
    protected $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 1
        }
34
35 1
        return $this->requestDate;
36
    }
37
38 3
    public function isValid()
39
    {
40 3
        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
}