AddressAbstract   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 83
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A getStreet1() 0 4 1
A getStreet2() 0 4 1
A getZip() 0 4 1
A getLocation() 0 4 1
A getCountry() 0 4 1
1
<?php
2
namespace Germania\Addresses;
3
4
abstract class AddressAbstract implements AddressInterface
5
{
6
7
    /**
8
     * @var string
9
     */
10
    public $type;
11
12
    /**
13
     * @var string
14
     */
15
    public $street1;
16
17
    /**
18
     * @var string
19
     */
20
    public $street2;
21
22
    /**
23
     * @var string
24
     */
25
    public $zip;
26
27
    /**
28
     * @var string
29
     */
30
    public $location;
31
32
    /**
33
     * @var string
34
     */
35
    public $country;
36
37
38
39
    /**
40
     * @inheritDoc
41
     */
42 4
    public function getType()  : ?string
43
    {
44 4
        return $this->type;
45
    }
46
47
    /**
48
     * @inheritDoc
49
     */
50 4
    public function getStreet1()  : ?string
51
    {
52 4
        return $this->street1;
53
    }
54
    
55
    /**
56
     * @inheritDoc
57
     */
58 4
    public function getStreet2()  : ?string
59
    {
60 4
        return $this->street2;
61
    }
62
    
63
    /**
64
     * @inheritDoc
65
     */
66 4
    public function getZip()      : ?string
67
    {
68 4
        return $this->zip;
69
    }
70
    
71
    /**
72
     * @inheritDoc
73
     */
74 4
    public function getLocation() : ?string
75
    {
76 4
        return $this->location;
77
    }
78
    
79
    /**
80
     * @inheritDoc
81
     */
82 4
    public function getCountry()  : ?string
83
    {
84 4
        return $this->country;
85
    }
86
}
87