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
|
|
|
use Etrias\PaazlConnector\Result\PaazlResultInterface; |
16
|
|
|
|
17
|
|
|
class PickupRequestStatusResponse implements PaazlResultInterface |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @var errorType |
21
|
|
|
*/ |
22
|
|
|
protected $error = null; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
protected $internalReference = null; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $webshop = null; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var pickupRequestStatusType |
36
|
|
|
*/ |
37
|
|
|
protected $status = null; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var \DateTime |
41
|
|
|
*/ |
42
|
|
|
protected $date = null; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var pickupRequestStatusHistoryType |
46
|
|
|
*/ |
47
|
|
|
protected $statusHistory = null; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Constructor. |
51
|
|
|
* |
52
|
|
|
* @var errorType |
53
|
|
|
* @var string $internalReference |
54
|
|
|
* @var int $webshop |
55
|
|
|
* @var pickupRequestStatusType $status |
56
|
|
|
* @var \DateTime $date |
57
|
|
|
* @var pickupRequestStatusHistoryType $statusHistory |
58
|
|
|
* |
59
|
|
|
* @param mixed $error |
60
|
|
|
* @param mixed $internalReference |
61
|
|
|
* @param mixed $webshop |
62
|
|
|
* @param mixed $status |
63
|
|
|
* @param mixed $date |
64
|
|
|
* @param mixed $statusHistory |
65
|
|
|
*/ |
66
|
|
|
public function __construct($error, $internalReference, $webshop, $status, $date, $statusHistory) |
67
|
|
|
{ |
68
|
|
|
$this->error = $error; |
|
|
|
|
69
|
|
|
$this->internalReference = $internalReference; |
70
|
|
|
$this->webshop = $webshop; |
71
|
|
|
$this->status = $status; |
72
|
|
|
$this->date = $date; |
73
|
|
|
$this->statusHistory = $statusHistory; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @return errorType |
78
|
|
|
*/ |
79
|
|
|
public function getError() |
80
|
|
|
{ |
81
|
|
|
return $this->error; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @param errorType $error |
86
|
|
|
* |
87
|
|
|
* @return $this |
88
|
|
|
*/ |
89
|
|
|
public function setError($error) |
90
|
|
|
{ |
91
|
|
|
$this->error = $error; |
92
|
|
|
|
93
|
|
|
return $this; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return string |
98
|
|
|
*/ |
99
|
|
|
public function getInternalReference() |
100
|
|
|
{ |
101
|
|
|
return $this->internalReference; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param string $internalReference |
106
|
|
|
* |
107
|
|
|
* @return $this |
108
|
|
|
*/ |
109
|
|
|
public function setInternalReference($internalReference) |
110
|
|
|
{ |
111
|
|
|
$this->internalReference = $internalReference; |
112
|
|
|
|
113
|
|
|
return $this; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @return int |
118
|
|
|
*/ |
119
|
|
|
public function getWebshop() |
120
|
|
|
{ |
121
|
|
|
return $this->webshop; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @param int $webshop |
126
|
|
|
* |
127
|
|
|
* @return $this |
128
|
|
|
*/ |
129
|
|
|
public function setWebshop($webshop) |
130
|
|
|
{ |
131
|
|
|
$this->webshop = $webshop; |
132
|
|
|
|
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return pickupRequestStatusType |
138
|
|
|
*/ |
139
|
|
|
public function getStatus() |
140
|
|
|
{ |
141
|
|
|
return $this->status; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @param pickupRequestStatusType $status |
146
|
|
|
* |
147
|
|
|
* @return $this |
148
|
|
|
*/ |
149
|
|
|
public function setStatus($status) |
150
|
|
|
{ |
151
|
|
|
$this->status = $status; |
152
|
|
|
|
153
|
|
|
return $this; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @return \DateTime |
158
|
|
|
*/ |
159
|
|
|
public function getDate() |
160
|
|
|
{ |
161
|
|
|
return $this->date; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @param \DateTime $date |
166
|
|
|
* |
167
|
|
|
* @return $this |
168
|
|
|
*/ |
169
|
|
|
public function setDate($date) |
170
|
|
|
{ |
171
|
|
|
$this->date = $date; |
172
|
|
|
|
173
|
|
|
return $this; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @return pickupRequestStatusHistoryType |
178
|
|
|
*/ |
179
|
|
|
public function getStatusHistory() |
180
|
|
|
{ |
181
|
|
|
return $this->statusHistory; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @param pickupRequestStatusHistoryType $statusHistory |
186
|
|
|
* |
187
|
|
|
* @return $this |
188
|
|
|
*/ |
189
|
|
|
public function setStatusHistory($statusHistory) |
190
|
|
|
{ |
191
|
|
|
$this->statusHistory = $statusHistory; |
192
|
|
|
|
193
|
|
|
return $this; |
194
|
|
|
} |
195
|
|
|
} |
196
|
|
|
|
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.