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.

FetchShippingCostAndMethod   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 206
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 3
dl 0
loc 206
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getAddressId() 0 4 1
A setAddressId() 0 5 1
A getAddressLine1() 0 4 1
A setAddressLine1() 0 5 1
A getAddressLine2() 0 4 1
A setAddressLine2() 0 5 1
A getCity() 0 4 1
A setCity() 0 5 1
A getCountry() 0 4 1
A setCountry() 0 5 1
A getPostCode() 0 4 1
A setPostCode() 0 5 1
A getPostalCode() 0 4 1
A setPostalCode() 0 5 1
A getAddressType() 0 4 1
A setAddressType() 0 5 1
1
<?php
2
3
namespace zaporylie\Vipps\Model\Payment;
4
5
use zaporylie\Vipps\Model\FromStringInterface;
6
use zaporylie\Vipps\Model\FromStringTrait;
7
use zaporylie\Vipps\Model\ToStringInterface;
8
use zaporylie\Vipps\Model\ToStringTrait;
9
use zaporylie\Vipps\Model\SupportsSerializationInterface;
10
use JMS\Serializer\Annotation as Serializer;
11
12
class FetchShippingCostAndMethod implements FromStringInterface, ToStringInterface, SupportsSerializationInterface
13
{
14
    use FromStringTrait;
15
    use PaymentSerializationTrait;
16
    use ToStringTrait;
17
18
    /**
19
     * @var int
20
     * @Serializer\Type("integer")
21
     */
22
    protected $addressId;
23
24
    /**
25
     * @var string
26
     * @Serializer\Type("string")
27
     */
28
    protected $addressLine1;
29
30
    /**
31
     * @var string
32
     * @Serializer\Type("string")
33
     */
34
    protected $addressLine2;
35
36
    /**
37
     * @var string
38
     * @Serializer\Type("string")
39
     */
40
    protected $city;
41
42
    /**
43
     * @var string
44
     * @Serializer\Type("string")
45
     */
46
    protected $country;
47
48
    /**
49
     * @var int
50
     * @Serializer\Type("integer")
51
     */
52
    protected $postCode;
53
54
    /**
55
     * @var int
56
     * @Serializer\Type("integer")
57
     */
58
    protected $postalCode;
59
60
    /**
61
     * @var string
62
     * @Serializer\Type("string")
63
     */
64
    protected $addressType;
65
66
    /**
67
     * @return int
68
     */
69
    public function getAddressId()
70
    {
71
        return $this->addressId;
72
    }
73
74
    /**
75
     * @param int $addressId
76
     *
77
     * @return $this
78
     */
79
    public function setAddressId($addressId)
80
    {
81
        $this->addressId = $addressId;
82
        return $this;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getAddressLine1()
89
    {
90
        return $this->addressLine1;
91
    }
92
93
    /**
94
     * @param string $addressLine1
95
     *
96
     * @return $this
97
     */
98
    public function setAddressLine1($addressLine1)
99
    {
100
        $this->addressLine1 = $addressLine1;
101
        return $this;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getAddressLine2()
108
    {
109
        return $this->addressLine2;
110
    }
111
112
    /**
113
     * @param string $addressLine2
114
     *
115
     * @return $this
116
     */
117
    public function setAddressLine2($addressLine2)
118
    {
119
        $this->addressLine2 = $addressLine2;
120
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getCity()
127
    {
128
        return $this->city;
129
    }
130
131
    /**
132
     * @param string $city
133
     *
134
     * @return $this
135
     */
136
    public function setCity($city)
137
    {
138
        $this->city = $city;
139
        return $this;
140
    }
141
142
    /**
143
     * @return string
144
     */
145
    public function getCountry()
146
    {
147
        return $this->country;
148
    }
149
150
    /**
151
     * @param string $country
152
     *
153
     * @return $this
154
     */
155
    public function setCountry($country)
156
    {
157
        $this->country = $country;
158
        return $this;
159
    }
160
161
    /**
162
     * @return int
163
     */
164
    public function getPostCode()
165
    {
166
        return $this->postCode;
167
    }
168
169
    /**
170
     * @param int $postCode
171
     *
172
     * @return $this
173
     */
174
    public function setPostCode($postCode)
175
    {
176
        $this->postCode = $postCode;
177
        return $this;
178
    }
179
180
    /**
181
     * @return int
182
     */
183
    public function getPostalCode()
184
    {
185
        return $this->postalCode;
186
    }
187
188
    /**
189
     * @param int $postalCode
190
     *
191
     * @return $this
192
     */
193
    public function setPostalCode($postalCode)
194
    {
195
        $this->postalCode = $postalCode;
196
        return $this;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getAddressType()
203
    {
204
        return $this->addressType;
205
    }
206
207
    /**
208
     * @param string $addressType
209
     *
210
     * @return $this
211
     */
212
    public function setAddressType($addressType)
213
    {
214
        $this->addressType = $addressType;
215
        return $this;
216
    }
217
}
218