OrderDetails::getTotalAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
use CultureKings\Afterpay\Model;
6
7
/**
8
 * Class OrderDetails
9
 *
10
 * @package CultureKings\Afterpay\Model\Merchant
11
 */
12
class OrderDetails
13
{
14
    /**
15
     * @var Consumer
16
     */
17
    protected $consumer;
18
    /**
19
     * @var Contact
20
     */
21
    protected $billing;
22
    /**
23
     * @var Contact
24
     */
25
    protected $shipping;
26
    /**
27
     * @var ShippingCourier
28
     */
29
    protected $courier;
30
    /**
31
     * @var Model\Item[]
32
     */
33
    protected $items = array();
34
    /**
35
     * @var Discount[]
36
     */
37
    protected $discounts = array();
38
    /**
39
     * @var Model\Money
40
     */
41
    protected $totalAmount;
42
    /**
43
     * @var Model\Money
44
     */
45
    protected $taxAmount;
46
    /**
47
     * @var Model\Money
48
     */
49
    protected $shippingAmount;
50
51
    /**
52
     * @var MerchantOptions
53
     */
54
    protected $merchant;
55
56
    /**
57
     * @var string
58
     */
59
    protected $paymentType;
60
61
    /**
62
     * @var string
63
     */
64
    protected $merchantReference;
65
66
    /**
67
     * @return Consumer
68
     */
69
    public function getConsumer()
70
    {
71
        return $this->consumer;
72
    }
73
74
    /**
75
     * @return Contact
76
     */
77
    public function getBilling()
78
    {
79
        return $this->billing;
80
    }
81
82
    /**
83
     * @return Contact
84
     */
85
    public function getShipping()
86
    {
87
        return $this->shipping;
88
    }
89
90
    /**
91
     * @return ShippingCourier
92
     */
93
    public function getCourier()
94
    {
95
        return $this->courier;
96
    }
97
98
    /**
99
     * @return Model\Item[]
100
     */
101
    public function getItems()
102
    {
103
        return $this->items;
104
    }
105
106
    /**
107
     * @return Discount[]
108
     */
109
    public function getDiscounts()
110
    {
111
        return $this->discounts;
112
    }
113
114
    /**
115
     * @return Model\Money
116
     */
117
    public function getTotalAmount()
118
    {
119
        return $this->totalAmount;
120
    }
121
122
    /**
123
     * @param Model\Money $totalAmount
124
     * @return $this
125
     */
126
    public function setTotalAmount($totalAmount)
127
    {
128
        $this->totalAmount = $totalAmount;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return Model\Money
135
     */
136
    public function getTaxAmount()
137
    {
138
        return $this->taxAmount;
139
    }
140
141
    /**
142
     * @return Model\Money
143
     */
144
    public function getShippingAmount()
145
    {
146
        return $this->shippingAmount;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getMerchantReference()
153
    {
154
        return $this->merchantReference;
155
    }
156
157
    /**
158
     * @param Consumer $consumer
159
     * @return $this
160
     */
161
    public function setConsumer(Consumer $consumer)
162
    {
163
        $this->consumer = $consumer;
164
165
        return $this;
166
    }
167
168
    /**
169
     * @param Contact $billing
170
     * @return $this
171
     */
172
    public function setBilling(Contact $billing)
173
    {
174
        $this->billing = $billing;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @param Contact $shipping
181
     * @return $this
182
     */
183
    public function setShipping(Contact $shipping)
184
    {
185
        $this->shipping = $shipping;
186
187
        return $this;
188
    }
189
190
    /**
191
     * @param ShippingCourier $courier
192
     * @return $this
193
     */
194
    public function setCourier(ShippingCourier $courier)
195
    {
196
        $this->courier = $courier;
197
198
        return $this;
199
    }
200
201
    /**
202
     * @param Model\Item[] $items
203
     * @return $this
204
     */
205
    public function setItems(array $items)
206
    {
207
        $this->items = $items;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @param Discount[] $discounts
214
     * @return $this
215
     */
216
    public function setDiscounts(array $discounts)
217
    {
218
        $this->discounts = $discounts;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param Model\Money $taxAmount
225
     * @return $this
226
     */
227
    public function setTaxAmount(Model\Money $taxAmount)
228
    {
229
        $this->taxAmount = $taxAmount;
230
231
        return $this;
232
    }
233
234
    /**
235
     * @param Model\Money $shippingAmount
236
     * @return $this
237
     */
238
    public function setShippingAmount(Model\Money $shippingAmount)
239
    {
240
        $this->shippingAmount = $shippingAmount;
241
242
        return $this;
243
    }
244
245
    /**
246
     * @return MerchantOptions
247
     */
248
    public function getMerchant()
249
    {
250
        return $this->merchant;
251
    }
252
253
    /**
254
     * @param MerchantOptions $merchant
255
     * @return $this
256
     */
257
    public function setMerchant(MerchantOptions $merchant)
258
    {
259
        $this->merchant = $merchant;
260
261
        return $this;
262
    }
263
264
    /**
265
     * @return string
266
     */
267
    public function getPaymentType()
268
    {
269
        return $this->paymentType;
270
    }
271
272
    /**
273
     * @param string $paymentType
274
     * @return $this
275
     */
276
    public function setPaymentType($paymentType)
277
    {
278
        $this->paymentType = $paymentType;
279
280
        return $this;
281
    }
282
283
    /**
284
     * @param string $merchantReference
285
     * @return $this
286
     */
287
    public function setMerchantReference($merchantReference)
288
    {
289
        $this->merchantReference = $merchantReference;
290
291
        return $this;
292
    }
293
}
294