1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | /* |
6: | * This file has been auto generated by Jane, |
7: | * |
8: | * Do no edit it directly. |
9: | */ |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Payments\Model; |
12: | |
13: | class Balance extends \ArrayObject |
14: | { |
15: | /** |
16: | * @var array |
17: | */ |
18: | protected $initialized = []; |
19: | |
20: | public function isInitialized($property): bool |
21: | { |
22: | return array_key_exists($property, $this->initialized); |
23: | } |
24: | /** |
25: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
26: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
27: | |
28: | * |
29: | * @var Money |
30: | */ |
31: | protected $amount; |
32: | /** |
33: | * @var \DateTime |
34: | */ |
35: | protected $asOfDate; |
36: | |
37: | /** |
38: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
39: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
40: | */ |
41: | public function getAmount(): Money |
42: | { |
43: | return $this->amount; |
44: | } |
45: | |
46: | /** |
47: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
48: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
49: | */ |
50: | public function setAmount(Money $amount): self |
51: | { |
52: | $this->initialized['amount'] = true; |
53: | $this->amount = $amount; |
54: | |
55: | return $this; |
56: | } |
57: | |
58: | public function getAsOfDate(): \DateTime |
59: | { |
60: | return $this->asOfDate; |
61: | } |
62: | |
63: | public function setAsOfDate(\DateTime $asOfDate): self |
64: | { |
65: | $this->initialized['asOfDate'] = true; |
66: | $this->asOfDate = $asOfDate; |
67: | |
68: | return $this; |
69: | } |
70: | } |
71: |