GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

AbstractAddress   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 167
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 14
lcom 1
cbo 2
dl 0
loc 167
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getCity() 0 4 1
A setCity() 0 4 1
A getCountryCode() 0 4 1
A setCountryCode() 0 5 1
A getLine1() 0 4 1
A setLine1() 0 4 1
A getLine2() 0 4 1
A setLine2() 0 4 1
A getPhone() 0 4 1
A setPhone() 0 4 1
A getPostalCode() 0 4 1
A setPostalCode() 0 4 1
A getState() 0 4 1
A setState() 0 4 1
1
<?php
2
3
namespace Onend\PayPal\Payment\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
use Onend\PayPal\Common\Model\AbstractModel;
8
use Onend\PayPal\Payment\Enum\CountryCode;
9
10
abstract class AbstractAddress extends AbstractModel
11
{
12
    /**
13
     * @JMS\Type("string")
14
     *
15
     * @var string
16
     */
17
    protected $line1;
18
19
    /**
20
     * @JMS\Type("string")
21
     *
22
     * @var string
23
     */
24
    protected $line2;
25
26
    /**
27
     * @JMS\Type("string")
28
     *
29
     * @var string
30
     */
31
    protected $city;
32
33
    /**
34
     * @JMS\Type("string")
35
     * @JMS\SerializedName("country_code")
36
     *
37
     * @var string
38
     */
39
    protected $countryCode;
40
41
    /**
42
     * @JMS\Type("string")
43
     * @JMS\SerializedName("postal_code")
44
     *
45
     * @var string
46
     */
47
    protected $postalCode;
48
49
    /**
50
     * @JMS\Type("string")
51
     *
52
     * @var string
53
     */
54
    protected $state;
55
56
    /**
57
     * @JMS\Type("string")
58
     *
59
     * @var string
60
     */
61
    protected $phone;
62
63
    /**
64
     * @return string
65
     */
66
    public function getCity()
67
    {
68
        return $this->city;
69
    }
70
71
    /**
72
     * @param string $city
73
     */
74
    public function setCity($city)
75
    {
76
        $this->city = $city;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getCountryCode()
83
    {
84
        return $this->countryCode;
85
    }
86
87
    /**
88
     * @param string $countryCode
89
     * @throws \InvalidArgumentException
90
     */
91
    public function setCountryCode($countryCode)
92
    {
93
        CountryCode::checkValue($countryCode);
94
        $this->countryCode = $countryCode;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getLine1()
101
    {
102
        return $this->line1;
103
    }
104
105
    /**
106
     * @param string $line1
107
     */
108
    public function setLine1($line1)
109
    {
110
        $this->line1 = $line1;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getLine2()
117
    {
118
        return $this->line2;
119
    }
120
121
    /**
122
     * @param string $line2
123
     */
124
    public function setLine2($line2)
125
    {
126
        $this->line2 = $line2;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getPhone()
133
    {
134
        return $this->phone;
135
    }
136
137
    /**
138
     * @param string $phone
139
     */
140
    public function setPhone($phone)
141
    {
142
        $this->phone = $phone;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getPostalCode()
149
    {
150
        return $this->postalCode;
151
    }
152
153
    /**
154
     * @param string $postalCode
155
     */
156
    public function setPostalCode($postalCode)
157
    {
158
        $this->postalCode = $postalCode;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getState()
165
    {
166
        return $this->state;
167
    }
168
169
    /**
170
     * @param string $state
171
     */
172
    public function setState($state)
173
    {
174
        $this->state = $state;
175
    }
176
}
177