DocumentResponse   A
last analyzed

Complexity

Total Complexity 18

Size/Duplication

Total Lines 207
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 37
c 1
b 0
f 0
dl 0
loc 207
rs 10
wmc 18

18 Methods

Rating   Name   Duplication   Size   Complexity  
A setExternalReference() 0 4 1
A setTitle() 0 4 1
A setId() 0 4 1
A getTitle() 0 3 1
A getExternalReference() 0 3 1
A getOrderId() 0 3 1
A setStatus() 0 4 1
A getId() 0 3 1
A getMimetype() 0 3 1
A setShippingLabel() 0 4 1
A setOrderId() 0 4 1
A getQuantity() 0 3 1
A isShippingLabel() 0 3 1
A setCreatedAt() 0 4 1
A setQuantity() 0 4 1
A getStatus() 0 3 1
A setMimetype() 0 4 1
A getCreatedAt() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: rob
5
 * Date: 21-9-18
6
 * Time: 16:34
7
 */
8
9
namespace Etrias\EwarehousingConnector\Response;
10
11
12
use DateTime;
13
14
class DocumentResponse
15
{
16
    /**
17
     * @var string
18
     */
19
    protected $id;
20
21
    /**
22
     * @var string
23
     */
24
    protected $orderId;
25
26
    /**
27
     * @var string
28
     */
29
    protected $externalReference;
30
31
    /**
32
     * @var string
33
     */
34
    protected $status;
35
36
    /**
37
     * @var string
38
     */
39
    protected $title;
40
41
    /**
42
     * @var string
43
     */
44
    protected $mimetype;
45
46
    /**
47
     * @var integer
48
     */
49
    protected $quantity;
50
51
    /**
52
     * @var bool
53
     */
54
    protected $shippingLabel;
55
56
    /**
57
     * @var DateTime
58
     */
59
    protected $createdAt;
60
61
    /**
62
     * @return string
63
     */
64
    public function getId()
65
    {
66
        return $this->id;
67
    }
68
69
    /**
70
     * @param string $id
71
     * @return DocumentResponse
72
     */
73
    public function setId($id)
74
    {
75
        $this->id = $id;
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getOrderId()
83
    {
84
        return $this->orderId;
85
    }
86
87
    /**
88
     * @param string $orderId
89
     * @return DocumentResponse
90
     */
91
    public function setOrderId($orderId)
92
    {
93
        $this->orderId = $orderId;
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getExternalReference()
101
    {
102
        return $this->externalReference;
103
    }
104
105
    /**
106
     * @param string $externalReference
107
     * @return DocumentResponse
108
     */
109
    public function setExternalReference($externalReference)
110
    {
111
        $this->externalReference = $externalReference;
112
        return $this;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getStatus()
119
    {
120
        return $this->status;
121
    }
122
123
    /**
124
     * @param string $status
125
     * @return DocumentResponse
126
     */
127
    public function setStatus($status)
128
    {
129
        $this->status = $status;
130
        return $this;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getTitle()
137
    {
138
        return $this->title;
139
    }
140
141
    /**
142
     * @param string $title
143
     * @return DocumentResponse
144
     */
145
    public function setTitle($title)
146
    {
147
        $this->title = $title;
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getMimetype()
155
    {
156
        return $this->mimetype;
157
    }
158
159
    /**
160
     * @param string $mimetype
161
     * @return DocumentResponse
162
     */
163
    public function setMimetype($mimetype)
164
    {
165
        $this->mimetype = $mimetype;
166
        return $this;
167
    }
168
169
    /**
170
     * @return int
171
     */
172
    public function getQuantity()
173
    {
174
        return $this->quantity;
175
    }
176
177
    /**
178
     * @param int $quantity
179
     * @return DocumentResponse
180
     */
181
    public function setQuantity($quantity)
182
    {
183
        $this->quantity = $quantity;
184
        return $this;
185
    }
186
187
    /**
188
     * @return bool
189
     */
190
    public function isShippingLabel()
191
    {
192
        return $this->shippingLabel;
193
    }
194
195
    /**
196
     * @param bool $shippingLabel
197
     * @return DocumentResponse
198
     */
199
    public function setShippingLabel($shippingLabel)
200
    {
201
        $this->shippingLabel = $shippingLabel;
202
        return $this;
203
    }
204
205
    /**
206
     * @return DateTime
207
     */
208
    public function getCreatedAt()
209
    {
210
        return $this->createdAt;
211
    }
212
213
    /**
214
     * @param DateTime $createdAt
215
     * @return DocumentResponse
216
     */
217
    public function setCreatedAt($createdAt)
218
    {
219
        $this->createdAt = $createdAt;
220
        return $this;
221
    }
222
}