1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Payments\Model; |
12: | |
13: | class BankConnection 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: | protected $id; |
28: | |
29: | |
30: | |
31: | protected $bankDetails; |
32: | |
33: | |
34: | |
35: | |
36: | |
37: | |
38: | protected $brexAccountId; |
39: | |
40: | |
41: | |
42: | protected $lastFour; |
43: | |
44: | |
45: | |
46: | protected $availableBalance; |
47: | |
48: | |
49: | |
50: | protected $currentBalance; |
51: | |
52: | public function getId(): string |
53: | { |
54: | return $this->id; |
55: | } |
56: | |
57: | public function setId(string $id): self |
58: | { |
59: | $this->initialized['id'] = true; |
60: | $this->id = $id; |
61: | |
62: | return $this; |
63: | } |
64: | |
65: | public function getBankDetails(): BankDetails |
66: | { |
67: | return $this->bankDetails; |
68: | } |
69: | |
70: | public function setBankDetails(BankDetails $bankDetails): self |
71: | { |
72: | $this->initialized['bankDetails'] = true; |
73: | $this->bankDetails = $bankDetails; |
74: | |
75: | return $this; |
76: | } |
77: | |
78: | |
79: | |
80: | |
81: | public function getBrexAccountId(): ?string |
82: | { |
83: | return $this->brexAccountId; |
84: | } |
85: | |
86: | |
87: | |
88: | |
89: | public function setBrexAccountId(?string $brexAccountId): self |
90: | { |
91: | $this->initialized['brexAccountId'] = true; |
92: | $this->brexAccountId = $brexAccountId; |
93: | |
94: | return $this; |
95: | } |
96: | |
97: | public function getLastFour(): string |
98: | { |
99: | return $this->lastFour; |
100: | } |
101: | |
102: | public function setLastFour(string $lastFour): self |
103: | { |
104: | $this->initialized['lastFour'] = true; |
105: | $this->lastFour = $lastFour; |
106: | |
107: | return $this; |
108: | } |
109: | |
110: | public function getAvailableBalance(): BankConnectionAvailableBalance |
111: | { |
112: | return $this->availableBalance; |
113: | } |
114: | |
115: | public function setAvailableBalance(BankConnectionAvailableBalance $availableBalance): self |
116: | { |
117: | $this->initialized['availableBalance'] = true; |
118: | $this->availableBalance = $availableBalance; |
119: | |
120: | return $this; |
121: | } |
122: | |
123: | public function getCurrentBalance(): BankConnectionCurrentBalance |
124: | { |
125: | return $this->currentBalance; |
126: | } |
127: | |
128: | public function setCurrentBalance(BankConnectionCurrentBalance $currentBalance): self |
129: | { |
130: | $this->initialized['currentBalance'] = true; |
131: | $this->currentBalance = $currentBalance; |
132: | |
133: | return $this; |
134: | } |
135: | } |
136: | |