1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Transactions\Model; |
12: | |
13: | class CardAccount extends \ArrayObject |
14: | { |
15: | |
16: | |
17: | |
18: | protected $initialized = []; |
19: | |
20: | public function isInitialized($property): bool |
21: | { |
22: | return array_key_exists($property, $this->initialized); |
23: | } |
24: | |
25: | |
26: | |
27: | |
28: | |
29: | protected $id; |
30: | |
31: | |
32: | |
33: | protected $status; |
34: | |
35: | |
36: | |
37: | protected $currentBalance; |
38: | |
39: | |
40: | |
41: | protected $availableBalance; |
42: | |
43: | |
44: | |
45: | protected $accountLimit; |
46: | |
47: | |
48: | |
49: | protected $currentStatementPeriod; |
50: | |
51: | |
52: | |
53: | |
54: | public function getId(): string |
55: | { |
56: | return $this->id; |
57: | } |
58: | |
59: | |
60: | |
61: | |
62: | public function setId(string $id): self |
63: | { |
64: | $this->initialized['id'] = true; |
65: | $this->id = $id; |
66: | |
67: | return $this; |
68: | } |
69: | |
70: | public function getStatus(): string |
71: | { |
72: | return $this->status; |
73: | } |
74: | |
75: | public function setStatus(string $status): self |
76: | { |
77: | $this->initialized['status'] = true; |
78: | $this->status = $status; |
79: | |
80: | return $this; |
81: | } |
82: | |
83: | public function getCurrentBalance(): CardAccountCurrentBalance |
84: | { |
85: | return $this->currentBalance; |
86: | } |
87: | |
88: | public function setCurrentBalance(CardAccountCurrentBalance $currentBalance): self |
89: | { |
90: | $this->initialized['currentBalance'] = true; |
91: | $this->currentBalance = $currentBalance; |
92: | |
93: | return $this; |
94: | } |
95: | |
96: | public function getAvailableBalance(): CardAccountAvailableBalance |
97: | { |
98: | return $this->availableBalance; |
99: | } |
100: | |
101: | public function setAvailableBalance(CardAccountAvailableBalance $availableBalance): self |
102: | { |
103: | $this->initialized['availableBalance'] = true; |
104: | $this->availableBalance = $availableBalance; |
105: | |
106: | return $this; |
107: | } |
108: | |
109: | public function getAccountLimit(): CardAccountAccountLimit |
110: | { |
111: | return $this->accountLimit; |
112: | } |
113: | |
114: | public function setAccountLimit(CardAccountAccountLimit $accountLimit): self |
115: | { |
116: | $this->initialized['accountLimit'] = true; |
117: | $this->accountLimit = $accountLimit; |
118: | |
119: | return $this; |
120: | } |
121: | |
122: | public function getCurrentStatementPeriod(): StatementPeriod |
123: | { |
124: | return $this->currentStatementPeriod; |
125: | } |
126: | |
127: | public function setCurrentStatementPeriod(StatementPeriod $currentStatementPeriod): self |
128: | { |
129: | $this->initialized['currentStatementPeriod'] = true; |
130: | $this->currentStatementPeriod = $currentStatementPeriod; |
131: | |
132: | return $this; |
133: | } |
134: | } |
135: | |