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 CreateIncomingTransferRequest 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 $counterparty; |
30: | |
31: | |
32: | |
33: | |
34: | |
35: | protected $receivingAccount; |
36: | |
37: | |
38: | |
39: | |
40: | |
41: | |
42: | |
43: | protected $amount; |
44: | |
45: | |
46: | |
47: | |
48: | |
49: | |
50: | protected $description; |
51: | |
52: | |
53: | |
54: | |
55: | |
56: | |
57: | public function getCounterparty(): iterable |
58: | { |
59: | return $this->counterparty; |
60: | } |
61: | |
62: | |
63: | |
64: | |
65: | |
66: | |
67: | public function setCounterparty(iterable $counterparty): self |
68: | { |
69: | $this->initialized['counterparty'] = true; |
70: | $this->counterparty = $counterparty; |
71: | |
72: | return $this; |
73: | } |
74: | |
75: | |
76: | |
77: | |
78: | |
79: | |
80: | public function getReceivingAccount(): iterable |
81: | { |
82: | return $this->receivingAccount; |
83: | } |
84: | |
85: | |
86: | |
87: | |
88: | |
89: | |
90: | public function setReceivingAccount(iterable $receivingAccount): self |
91: | { |
92: | $this->initialized['receivingAccount'] = true; |
93: | $this->receivingAccount = $receivingAccount; |
94: | |
95: | return $this; |
96: | } |
97: | |
98: | |
99: | |
100: | |
101: | |
102: | public function getAmount(): Money |
103: | { |
104: | return $this->amount; |
105: | } |
106: | |
107: | |
108: | |
109: | |
110: | |
111: | public function setAmount(Money $amount): self |
112: | { |
113: | $this->initialized['amount'] = true; |
114: | $this->amount = $amount; |
115: | |
116: | return $this; |
117: | } |
118: | |
119: | |
120: | |
121: | |
122: | public function getDescription(): string |
123: | { |
124: | return $this->description; |
125: | } |
126: | |
127: | |
128: | |
129: | |
130: | public function setDescription(string $description): self |
131: | { |
132: | $this->initialized['description'] = true; |
133: | $this->description = $description; |
134: | |
135: | return $this; |
136: | } |
137: | } |
138: | |