RefundLineItem::setLineItem()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\Refund;
13
14
use Slince\Shopify\Common\Model\Model;
15
use Slince\Shopify\Manager\Order\LineItem;
16
17
class RefundLineItem extends Model
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $quantity;
23
24
    /**
25
     * @var int
26
     */
27
    protected $lineItemId;
28
29
    /**
30
     * @var float
31
     */
32
    protected $subtotal;
33
34
    /**
35
     * @var float
36
     */
37
    protected $totalTax;
38
39
    /**
40
     * @var LineItem
41
     */
42
    protected $lineItem;
43
44
    /**
45
     * @return int
46
     */
47
    public function getQuantity()
48
    {
49
        return $this->quantity;
50
    }
51
52
    /**
53
     * @param int $quantity
54
     *
55
     * @return RefundLineItem
56
     */
57
    public function setQuantity($quantity)
58
    {
59
        $this->quantity = $quantity;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return int
66
     */
67
    public function getLineItemId()
68
    {
69
        return $this->lineItemId;
70
    }
71
72
    /**
73
     * @param int $lineItemId
74
     *
75
     * @return RefundLineItem
76
     */
77
    public function setLineItemId($lineItemId)
78
    {
79
        $this->lineItemId = $lineItemId;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @return float
86
     */
87
    public function getSubtotal()
88
    {
89
        return $this->subtotal;
90
    }
91
92
    /**
93
     * @param float $subtotal
94
     *
95
     * @return RefundLineItem
96
     */
97
    public function setSubtotal($subtotal)
98
    {
99
        $this->subtotal = $subtotal;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return float
106
     */
107
    public function getTotalTax()
108
    {
109
        return $this->totalTax;
110
    }
111
112
    /**
113
     * @param float $totalTax
114
     *
115
     * @return RefundLineItem
116
     */
117
    public function setTotalTax($totalTax)
118
    {
119
        $this->totalTax = $totalTax;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @return LineItem
126
     */
127
    public function getLineItem()
128
    {
129
        return $this->lineItem;
130
    }
131
132
    /**
133
     * @param LineItem $lineItem
134
     *
135
     * @return RefundLineItem
136
     */
137
    public function setLineItem($lineItem)
138
    {
139
        $this->lineItem = $lineItem;
140
141
        return $this;
142
    }
143
}
144