Completed
Push — master ( cdb73e...fb348d )
by Mathew
02:04
created

Transaction::getAmount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Thepixeldeveloper\Mondo\Response\Transactions;
4
5
/**
6
 * Class Transaction
7
 *
8
 * @package Thepixeldeveloper\Mondo\Response\Transactions
9
 */
10
class Transaction
11
{
12
    /**
13
     * Transaction id.
14
     *
15
     * @var string
16
     */
17
    protected $id;
18
19
    /**
20
     * Created time.
21
     *
22
     * @var \DateTime
23
     */
24
    protected $created;
25
26
    /**
27
     * Description.
28
     *
29
     * @var string
30
     */
31
    protected $description;
32
33
    /**
34
     * Amount.
35
     *
36
     * @var integer
37
     */
38
    protected $amount;
39
40
    /**
41
     * Currency.
42
     *
43
     * @var string
44
     */
45
    protected $currency;
46
47
    /**
48
     * Merchant.
49
     *
50
     * @var string
51
     */
52
    protected $merchant;
53
54
    /**
55
     * Notes.
56
     *
57
     * @var string
58
     */
59
    protected $notes;
60
61
    /**
62
     * Metadata.
63
     *
64
     * @var array
65
     */
66
    protected $metadata = [];
67
68
    /**
69
     * Balance.
70
     *
71
     * @var integer
72
     */
73
    protected $accountBalance;
74
75
    /**
76
     * Attachments.
77
     *
78
     * @var array
79
     */
80
    protected $attachments = [];
81
82
    /**
83
     * Category.
84
     *
85
     * @var string
86
     */
87
    protected $category;
88
89
    /**
90
     * Is load.
91
     *
92
     * @var boolean
93
     */
94
    protected $isLoad;
95
96
    /**
97
     * Settled.
98
     *
99
     * @var \DateTime
100
     */
101
    protected $settled;
102
103
    /**
104
     * Local amount.
105
     *
106
     * @var integer
107
     */
108
    protected $localAmount;
109
110
    /**
111
     * Local currency.
112
     *
113
     * @var integer
114
     */
115
    protected $localCurrency;
116
117
    /**
118
     * @return string
119
     */
120
    public function getId()
121
    {
122
        return $this->id;
123
    }
124
125
    /**
126
     * @return \DateTime
127
     */
128
    public function getCreated()
129
    {
130
        return new \DateTime();
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getDescription()
137
    {
138
        return $this->description;
139
    }
140
141
    /**
142
     * @return int
143
     */
144
    public function getAmount()
145
    {
146
        return $this->amount;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getCurrency()
153
    {
154
        return $this->currency;
155
    }
156
157
    /**
158
     * @return string
159
     */
160
    public function getMerchant()
161
    {
162
        return $this->merchant;
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getNotes()
169
    {
170
        return $this->notes;
171
    }
172
173
    /**
174
     * @return array
175
     */
176
    public function getMetadata()
177
    {
178
        return $this->metadata;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getAccountBalance()
185
    {
186
        return $this->accountBalance;
187
    }
188
189
    /**
190
     * @return array
191
     */
192
    public function getAttachments()
193
    {
194
        return $this->attachments;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getCategory()
201
    {
202
        return $this->category;
203
    }
204
205
    /**
206
     * @return boolean
207
     */
208
    public function isIsLoad()
209
    {
210
        return $this->isLoad;
211
    }
212
213
    /**
214
     * @return \DateTime
215
     */
216
    public function getSettled()
217
    {
218
        return new \DateTime();
219
    }
220
221
    /**
222
     * @return int
223
     */
224
    public function getLocalAmount()
225
    {
226
        return $this->localAmount;
227
    }
228
229
    /**
230
     * @return int
231
     */
232
    public function getLocalCurrency()
233
    {
234
        return $this->localCurrency;
235
    }
236
}
237