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\Transactions\Model;
12:
13: class Money 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: * The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
26: *
27: * @var int
28: */
29: protected $amount;
30: /**
31: * The type of currency, in ISO 4217 format. Default to USD if not specified.
32: *
33: * @var string|null
34: */
35: protected $currency;
36:
37: /**
38: * The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
39: */
40: public function getAmount(): int
41: {
42: return $this->amount;
43: }
44:
45: /**
46: * The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
47: */
48: public function setAmount(int $amount): self
49: {
50: $this->initialized['amount'] = true;
51: $this->amount = $amount;
52:
53: return $this;
54: }
55:
56: /**
57: * The type of currency, in ISO 4217 format. Default to USD if not specified.
58: */
59: public function getCurrency(): ?string
60: {
61: return $this->currency;
62: }
63:
64: /**
65: * The type of currency, in ISO 4217 format. Default to USD if not specified.
66: */
67: public function setCurrency(?string $currency): self
68: {
69: $this->initialized['currency'] = true;
70: $this->currency = $currency;
71:
72: return $this;
73: }
74: }
75: