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\EwarehousingConnector\Response; |
14
|
|
|
|
15
|
|
|
use DateTime; |
16
|
|
|
use Etrias\EwarehousingConnector\Types\InboundResponseLine; |
17
|
|
|
|
18
|
|
|
class InboundResponse |
19
|
|
|
{ |
20
|
|
|
/** @var DateTime */ |
21
|
|
|
protected $date; |
22
|
|
|
|
23
|
|
|
/** @var string */ |
24
|
|
|
protected $reference; |
25
|
|
|
|
26
|
|
|
/** @var string */ |
27
|
|
|
protected $status; |
28
|
|
|
|
29
|
|
|
/** @var string */ |
30
|
|
|
protected $statusCode; |
31
|
|
|
|
32
|
|
|
/** @var string */ |
33
|
|
|
protected $typeCode; |
34
|
|
|
|
35
|
|
|
/** @var InboundResponseLine[] */ |
36
|
|
|
protected $inboundLines; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @return DateTime |
40
|
|
|
*/ |
41
|
|
|
public function getDate() |
42
|
|
|
{ |
43
|
|
|
return $this->date; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @param DateTime $date |
48
|
|
|
* |
49
|
|
|
* @return InboundResponse |
50
|
|
|
*/ |
51
|
|
|
public function setDate($date) |
52
|
|
|
{ |
53
|
|
|
$this->date = $date; |
54
|
|
|
|
55
|
|
|
return $this; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @return string |
60
|
|
|
*/ |
61
|
|
|
public function getReference() |
62
|
|
|
{ |
63
|
|
|
return $this->reference; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @param string $reference |
68
|
|
|
* |
69
|
|
|
* @return InboundResponse |
70
|
|
|
*/ |
71
|
|
|
public function setReference($reference) |
72
|
|
|
{ |
73
|
|
|
$this->reference = $reference; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getStatus() |
82
|
|
|
{ |
83
|
|
|
return $this->status; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param string $status |
88
|
|
|
* |
89
|
|
|
* @return InboundResponse |
90
|
|
|
*/ |
91
|
|
|
public function setStatus($status) |
92
|
|
|
{ |
93
|
|
|
$this->status = $status; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return string |
100
|
|
|
*/ |
101
|
|
|
public function getStatusCode() |
102
|
|
|
{ |
103
|
|
|
return $this->statusCode; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @param string $statusCode |
108
|
|
|
* |
109
|
|
|
* @return InboundResponse |
110
|
|
|
*/ |
111
|
|
|
public function setStatusCode($statusCode) |
112
|
|
|
{ |
113
|
|
|
$this->statusCode = $statusCode; |
114
|
|
|
|
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return string |
120
|
|
|
*/ |
121
|
|
|
public function getTypeCode() |
122
|
|
|
{ |
123
|
|
|
return $this->typeCode; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param string $typeCode |
128
|
|
|
* |
129
|
|
|
* @return InboundResponse |
130
|
|
|
*/ |
131
|
|
|
public function setTypeCode($typeCode) |
132
|
|
|
{ |
133
|
|
|
$this->typeCode = $typeCode; |
134
|
|
|
|
135
|
|
|
return $this; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return InboundResponseLine[] |
140
|
|
|
*/ |
141
|
|
|
public function getInboundLines() |
142
|
|
|
{ |
143
|
|
|
return $this->inboundLines; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param InboundResponseLine[] $inboundLines |
148
|
|
|
* |
149
|
|
|
* @return InboundResponse |
150
|
|
|
*/ |
151
|
|
|
public function setInboundLines($inboundLines) |
152
|
|
|
{ |
153
|
|
|
$this->inboundLines = $inboundLines; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
} |
158
|
|
|
|