Refund::getCharge()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PagaMasTarde\Model;
4
5
/**
6
 * Class Refund
7
 * @package PagaMasTarde\Model
8
 */
9
class Refund extends AbstractModel
10
{
11
    /**
12
     * @var string $id
13
     */
14
    public $id;
15
16
    /**
17
     * @var int $amount
18
     */
19
    public $amount;
20
21
    /**
22
     * @var string $createdAt
23
     */
24
    public $createdAt;
25
26
    /**
27
     * @var array $charge
28
     */
29
    public $charge;
30
31
    /**
32
     * @var int $amountToSettle
33
     */
34
    public $amountToSettle;
35
36
    /**
37
     * @var int $commission
38
     */
39
    public $commission;
40
41
    /**
42
     * @var int $discount
43
     */
44
    public $discount;
45
46
    /**
47
     * @var string $discountApplied
48
     */
49
    public $discountApplied;
50
51
    /**
52
     * @return string
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @param string $id
61
     *
62
     * @return Refund
63
     */
64
    public function setId($id)
65
    {
66
        $this->id = $id;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getAmount()
75
    {
76
        return $this->amount;
77
    }
78
79
    /**
80
     * @param int $amount
81
     *
82
     * @return Refund
83
     */
84
    public function setAmount($amount)
85
    {
86
        $this->amount = $amount;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getCreatedAt()
95
    {
96
        return $this->createdAt;
97
    }
98
99
    /**
100
     * @param string $createdAt
101
     *
102
     * @return Refund
103
     */
104
    public function setCreatedAt($createdAt)
105
    {
106
        $this->createdAt = $createdAt;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return array
113
     */
114
    public function getCharge()
115
    {
116
        return $this->charge;
117
    }
118
119
    /**
120
     * @param array $charge
121
     *
122
     * @return Refund
123
     */
124
    public function setCharge($charge)
125
    {
126
        $this->charge = $charge;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return int
133
     */
134
    public function getAmountToSettle()
135
    {
136
        return $this->amountToSettle;
137
    }
138
139
    /**
140
     * @param int $amountToSettle
141
     *
142
     * @return Refund
143
     */
144
    public function setAmountToSettle($amountToSettle)
145
    {
146
        $this->amountToSettle = $amountToSettle;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return int
153
     */
154
    public function getCommission()
155
    {
156
        return $this->commission;
157
    }
158
159
    /**
160
     * @param int $commission
161
     *
162
     * @return Refund
163
     */
164
    public function setCommission($commission)
165
    {
166
        $this->commission = $commission;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return int
173
     */
174
    public function getDiscount()
175
    {
176
        return $this->discount;
177
    }
178
179
    /**
180
     * @param int $discount
181
     *
182
     * @return Refund
183
     */
184
    public function setDiscount($discount)
185
    {
186
        $this->discount = $discount;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function isDiscountApplied()
195
    {
196
        return $this->discountApplied;
197
    }
198
199
    /**
200
     * @param string $discountApplied
201
     *
202
     * @return Refund
203
     */
204
    public function setDiscountApplied($discountApplied)
205
    {
206
        $this->discountApplied = $discountApplied;
207
208
        return $this;
209
    }
210
}
211