Completed
Pull Request — master (#1)
by Mathew
02:15
created

Transaction::getLocalAmount()   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
use JMS\Serializer\Annotation as JMS;
6
use Thepixeldeveloper\Mondo\Response\Merchant;
7
8
/**
9
 * Class Transaction
10
 *
11
 * @package Thepixeldeveloper\Mondo\Response\Transactions
12
 */
13
class Transaction
14
{
15
    /**
16
     * Transaction id.
17
     *
18
     * @var string
19
     * @JMS\Type("string")
20
     */
21
    protected $id;
22
23
    /**
24
     * Created time.
25
     *
26
     * @var \DateTime
27
     * @JMS\Type("DateTime")
28
     */
29
    protected $created;
30
31
    /**
32
     * Description.
33
     *
34
     * @var string
35
     * @JMS\Type("string")
36
     */
37
    protected $description;
38
39
    /**
40
     * Amount.
41
     *
42
     * @var integer
43
     * @JMS\Type("integer")
44
     */
45
    protected $amount;
46
47
    /**
48
     * Currency.
49
     *
50
     * @var string
51
     * @JMS\Type("string")
52
     */
53
    protected $currency;
54
55
    /**
56
     * Merchant.
57
     *
58
     * @var Merchant
59
     * @JMS\Type("Thepixeldeveloper\Mondo\Response\Merchant")
60
     */
61
    protected $merchant;
62
63
    /**
64
     * Notes.
65
     *
66
     * @var string
67
     * @JMS\Type("string")
68
     */
69
    protected $notes;
70
71
    /**
72
     * Metadata.
73
     *
74
     * @var array
75
     * @JMS\Type("array")
76
     */
77
    protected $metadata = [];
78
79
    /**
80
     * Balance.
81
     *
82
     * @var integer
83
     * @JMS\Type("integer")
84
     */
85
    protected $accountBalance;
86
87
    /**
88
     * Is load.
89
     *
90
     * @var boolean
91
     * @JMS\Type("boolean")
92
     */
93
    protected $isLoad;
94
95
    /**
96
     * Settled.
97
     *
98
     * @var \DateTime
99
     * @JMS\Type("DateTime")
100
     */
101
    protected $settled;
102
103
    /**
104
     * @return string
105
     */
106
    public function getId()
107
    {
108
        return $this->id;
109
    }
110
111
    /**
112
     * @return \DateTime
113
     */
114
    public function getCreated()
115
    {
116
        return $this->created;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getDescription()
123
    {
124
        return $this->description;
125
    }
126
127
    /**
128
     * @return int
129
     */
130
    public function getAmount()
131
    {
132
        return $this->amount;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getCurrency()
139
    {
140
        return $this->currency;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getMerchant()
147
    {
148
        return $this->merchant;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getNotes()
155
    {
156
        return $this->notes;
157
    }
158
159
    /**
160
     * @return array
161
     */
162
    public function getMetadata()
163
    {
164
        return $this->metadata;
165
    }
166
167
    /**
168
     * @return int
169
     */
170
    public function getAccountBalance()
171
    {
172
        return $this->accountBalance;
173
    }
174
175
    /**
176
     * @return boolean
177
     */
178
    public function isIsLoad()
179
    {
180
        return $this->isLoad;
181
    }
182
183
    /**
184
     * @return \DateTime
185
     */
186
    public function getSettled()
187
    {
188
        return $this->settled;
189
    }
190
}
191