GetTrackingCodeResponse::getTrackingCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 Etrias\EwarehousingConnector\Types\Label;
16
17
class GetTrackingCodeResponse
18
{
19
    /** @var string */
20
    protected $orderReference;
21
22
    /** @var bool */
23
    protected $sent;
24
25
    /** @var string */
26
    protected $zipcode;
27
28
    /** @var Label[] */
29
    protected $labels = [];
30
31
    /** @var string */
32
    protected $trackingCode;
33
34
    /** @var string */
35
    protected $trackingUrl;
36
37
    /** @var string */
38
    protected $shipper;
39
40
    /**
41
     * @return string
42
     */
43
    public function getOrderReference()
44
    {
45
        return $this->orderReference;
46
    }
47
48
    /**
49
     * @param string $orderReference
50
     *
51
     * @return GetTrackingCodeResponse
52
     */
53
    public function setOrderReference($orderReference)
54
    {
55
        $this->orderReference = $orderReference;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @return bool
62
     */
63
    public function isSent()
64
    {
65
        return $this->sent;
66
    }
67
68
    /**
69
     * @param bool $sent
70
     *
71
     * @return GetTrackingCodeResponse
72
     */
73
    public function setSent($sent)
74
    {
75
        $this->sent = $sent;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getZipcode()
84
    {
85
        return $this->zipcode;
86
    }
87
88
    /**
89
     * @param string $zipcode
90
     *
91
     * @return GetTrackingCodeResponse
92
     */
93
    public function setZipcode($zipcode)
94
    {
95
        $this->zipcode = $zipcode;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @return Label[]
102
     */
103
    public function getLabels()
104
    {
105
        return $this->labels;
106
    }
107
108
    /**
109
     * @param Label[] $labels
110
     *
111
     * @return GetTrackingCodeResponse
112
     */
113
    public function setLabels($labels)
114
    {
115
        $this->labels = $labels;
116
117
        return $this;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getTrackingCode()
124
    {
125
        return $this->trackingCode;
126
    }
127
128
    /**
129
     * @param string $trackingCode
130
     *
131
     * @return GetTrackingCodeResponse
132
     */
133
    public function setTrackingCode($trackingCode)
134
    {
135
        $this->trackingCode = $trackingCode;
136
137
        return $this;
138
    }
139
140
    /**
141
     * @return string
142
     */
143
    public function getTrackingUrl()
144
    {
145
        return $this->trackingUrl;
146
    }
147
148
    /**
149
     * @param string $trackingUrl
150
     *
151
     * @return GetTrackingCodeResponse
152
     */
153
    public function setTrackingUrl($trackingUrl)
154
    {
155
        $this->trackingUrl = $trackingUrl;
156
157
        return $this;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getShipper()
164
    {
165
        return $this->shipper;
166
    }
167
168
    /**
169
     * @param string $shipper
170
     *
171
     * @return GetTrackingCodeResponse
172
     */
173
    public function setShipper($shipper): GetTrackingCodeResponse
174
    {
175
        $this->shipper = $shipper;
176
177
        return $this;
178
    }
179
}
180