CarrierStatusType   A
last analyzed

Complexity

Total Complexity 21

Size/Duplication

Total Lines 289
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 289
rs 10
c 0
b 0
f 0
wmc 21

21 Methods

Rating   Name   Duplication   Size   Complexity  
A setCity() 0 5 1
A setDescription() 0 5 1
A setTime() 0 5 1
A getInfo() 0 3 1
A setPostalcode() 0 5 1
A setDate() 0 5 1
A getPostalcode() 0 3 1
A getDate() 0 3 1
A getCode() 0 3 1
A setCountry() 0 5 1
A getType() 0 3 1
A getProofOfDelivery() 0 3 1
A setType() 0 5 1
A setCode() 0 5 1
A setProofOfDelivery() 0 5 1
A getDescription() 0 3 1
A getCity() 0 3 1
A setInfo() 0 5 1
A getCountry() 0 3 1
A getTime() 0 3 1
A __construct() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz Rumiński <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\PaazlConnector\SoapTypes;
14
15
class CarrierStatusType
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $info = null;
21
22
    /**
23
     * @var string
24
     */
25
    protected $type = null;
26
27
    /**
28
     * @var string
29
     */
30
    protected $code = null;
31
32
    /**
33
     * @var string
34
     */
35
    protected $description = null;
36
37
    /**
38
     * @var string
39
     */
40
    protected $city = null;
41
42
    /**
43
     * @var string
44
     */
45
    protected $postalcode = null;
46
47
    /**
48
     * @var string
49
     */
50
    protected $country = null;
51
52
    /**
53
     * @var string
54
     */
55
    protected $proofOfDelivery = null;
56
57
    /**
58
     * @var \DateTime
59
     */
60
    protected $date = null;
61
62
    /**
63
     * @var time
64
     */
65
    protected $time = null;
66
67
    /**
68
     * Constructor.
69
     *
70
     * @var string
71
     * @var string    $type
72
     * @var string    $code
73
     * @var string    $description
74
     * @var string    $city
75
     * @var string    $postalcode
76
     * @var string    $country
77
     * @var string    $proofOfDelivery
78
     * @var \DateTime $date
79
     * @var time      $time
80
     *
81
     * @param mixed $info
82
     * @param mixed $type
83
     * @param mixed $code
84
     * @param mixed $description
85
     * @param mixed $city
86
     * @param mixed $postalcode
87
     * @param mixed $country
88
     * @param mixed $proofOfDelivery
89
     * @param mixed $date
90
     * @param mixed $time
91
     */
92
    public function __construct($info, $type, $code, $description, $city, $postalcode, $country, $proofOfDelivery, $date, $time)
93
    {
94
        $this->info = $info;
0 ignored issues
show
Documentation Bug introduced by
$info is of type mixed, but the property $info was declared to be of type string. Are you sure that you always receive this specific sub-class here, or does it make sense to add an instanceof check?

Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.

Either this assignment is in error or an instanceof check should be added for that assignment.

class Alien {}

class Dalek extends Alien {}

class Plot
{
    /** @var  Dalek */
    public $villain;
}

$alien = new Alien();
$plot = new Plot();
if ($alien instanceof Dalek) {
    $plot->villain = $alien;
}
Loading history...
95
        $this->type = $type;
96
        $this->code = $code;
97
        $this->description = $description;
98
        $this->city = $city;
99
        $this->postalcode = $postalcode;
100
        $this->country = $country;
101
        $this->proofOfDelivery = $proofOfDelivery;
102
        $this->date = $date;
103
        $this->time = $time;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getInfo()
110
    {
111
        return $this->info;
112
    }
113
114
    /**
115
     * @param string $info
116
     *
117
     * @return $this
118
     */
119
    public function setInfo($info)
120
    {
121
        $this->info = $info;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getType()
130
    {
131
        return $this->type;
132
    }
133
134
    /**
135
     * @param string $type
136
     *
137
     * @return $this
138
     */
139
    public function setType($type)
140
    {
141
        $this->type = $type;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return string
148
     */
149
    public function getCode()
150
    {
151
        return $this->code;
152
    }
153
154
    /**
155
     * @param string $code
156
     *
157
     * @return $this
158
     */
159
    public function setCode($code)
160
    {
161
        $this->code = $code;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getDescription()
170
    {
171
        return $this->description;
172
    }
173
174
    /**
175
     * @param string $description
176
     *
177
     * @return $this
178
     */
179
    public function setDescription($description)
180
    {
181
        $this->description = $description;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return string
188
     */
189
    public function getCity()
190
    {
191
        return $this->city;
192
    }
193
194
    /**
195
     * @param string $city
196
     *
197
     * @return $this
198
     */
199
    public function setCity($city)
200
    {
201
        $this->city = $city;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return string
208
     */
209
    public function getPostalcode()
210
    {
211
        return $this->postalcode;
212
    }
213
214
    /**
215
     * @param string $postalcode
216
     *
217
     * @return $this
218
     */
219
    public function setPostalcode($postalcode)
220
    {
221
        $this->postalcode = $postalcode;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return string
228
     */
229
    public function getCountry()
230
    {
231
        return $this->country;
232
    }
233
234
    /**
235
     * @param string $country
236
     *
237
     * @return $this
238
     */
239
    public function setCountry($country)
240
    {
241
        $this->country = $country;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @return string
248
     */
249
    public function getProofOfDelivery()
250
    {
251
        return $this->proofOfDelivery;
252
    }
253
254
    /**
255
     * @param string $proofOfDelivery
256
     *
257
     * @return $this
258
     */
259
    public function setProofOfDelivery($proofOfDelivery)
260
    {
261
        $this->proofOfDelivery = $proofOfDelivery;
262
263
        return $this;
264
    }
265
266
    /**
267
     * @return \DateTime
268
     */
269
    public function getDate()
270
    {
271
        return $this->date;
272
    }
273
274
    /**
275
     * @param \DateTime $date
276
     *
277
     * @return $this
278
     */
279
    public function setDate($date)
280
    {
281
        $this->date = $date;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @return time
288
     */
289
    public function getTime()
290
    {
291
        return $this->time;
292
    }
293
294
    /**
295
     * @param time $time
296
     *
297
     * @return $this
298
     */
299
    public function setTime($time)
300
    {
301
        $this->time = $time;
302
303
        return $this;
304
    }
305
}
306