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\Budgets\Model;
12:
13: class UpdateBudgetRequest 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: Name for the Budget.
26:
27: *
28: * @var string|null
29: */
30: protected $name;
31: /**
32: Description of what the Budget is used for.
33:
34: *
35: * @var string|null
36: */
37: protected $description;
38: /**
39: User IDs of the owners of the Budget.
40:
41: *
42: * @var string[]|null
43: */
44: protected $ownerUserIds;
45: /**
46: User IDs of the members of the Budget.
47:
48: *
49: * @var string[]|null
50: */
51: protected $memberUserIds;
52: /**
53: * @var UpdateBudgetRequestLimit
54: */
55: protected $limit;
56: /**
57: * @var string
58: */
59: protected $limitType;
60: /**
61: * @var string
62: */
63: protected $spendType;
64: /**
65: The UTC date when the Budget should start counting.
66:
67: *
68: * @var \DateTime|null
69: */
70: protected $startDate;
71: /**
72: The UTC date when the Budget should stop counting.
73:
74: *
75: * @var \DateTime|null
76: */
77: protected $endDate;
78:
79: /**
80: Name for the Budget.
81: */
82: public function getName(): ?string
83: {
84: return $this->name;
85: }
86:
87: /**
88: Name for the Budget.
89: */
90: public function setName(?string $name): self
91: {
92: $this->initialized['name'] = true;
93: $this->name = $name;
94:
95: return $this;
96: }
97:
98: /**
99: Description of what the Budget is used for.
100: */
101: public function getDescription(): ?string
102: {
103: return $this->description;
104: }
105:
106: /**
107: Description of what the Budget is used for.
108: */
109: public function setDescription(?string $description): self
110: {
111: $this->initialized['description'] = true;
112: $this->description = $description;
113:
114: return $this;
115: }
116:
117: /**
118: User IDs of the owners of the Budget.
119:
120: *
121: * @return string[]|null
122: */
123: public function getOwnerUserIds(): ?array
124: {
125: return $this->ownerUserIds;
126: }
127:
128: /**
129: User IDs of the owners of the Budget.
130:
131: *
132: * @param string[]|null $ownerUserIds
133: */
134: public function setOwnerUserIds(?array $ownerUserIds): self
135: {
136: $this->initialized['ownerUserIds'] = true;
137: $this->ownerUserIds = $ownerUserIds;
138:
139: return $this;
140: }
141:
142: /**
143: User IDs of the members of the Budget.
144:
145: *
146: * @return string[]|null
147: */
148: public function getMemberUserIds(): ?array
149: {
150: return $this->memberUserIds;
151: }
152:
153: /**
154: User IDs of the members of the Budget.
155:
156: *
157: * @param string[]|null $memberUserIds
158: */
159: public function setMemberUserIds(?array $memberUserIds): self
160: {
161: $this->initialized['memberUserIds'] = true;
162: $this->memberUserIds = $memberUserIds;
163:
164: return $this;
165: }
166:
167: public function getLimit(): UpdateBudgetRequestLimit
168: {
169: return $this->limit;
170: }
171:
172: public function setLimit(UpdateBudgetRequestLimit $limit): self
173: {
174: $this->initialized['limit'] = true;
175: $this->limit = $limit;
176:
177: return $this;
178: }
179:
180: public function getLimitType(): string
181: {
182: return $this->limitType;
183: }
184:
185: public function setLimitType(string $limitType): self
186: {
187: $this->initialized['limitType'] = true;
188: $this->limitType = $limitType;
189:
190: return $this;
191: }
192:
193: public function getSpendType(): string
194: {
195: return $this->spendType;
196: }
197:
198: public function setSpendType(string $spendType): self
199: {
200: $this->initialized['spendType'] = true;
201: $this->spendType = $spendType;
202:
203: return $this;
204: }
205:
206: /**
207: The UTC date when the Budget should start counting.
208: */
209: public function getStartDate(): ?\DateTime
210: {
211: return $this->startDate;
212: }
213:
214: /**
215: The UTC date when the Budget should start counting.
216: */
217: public function setStartDate(?\DateTime $startDate): self
218: {
219: $this->initialized['startDate'] = true;
220: $this->startDate = $startDate;
221:
222: return $this;
223: }
224:
225: /**
226: The UTC date when the Budget should stop counting.
227: */
228: public function getEndDate(): ?\DateTime
229: {
230: return $this->endDate;
231: }
232:
233: /**
234: The UTC date when the Budget should stop counting.
235: */
236: public function setEndDate(?\DateTime $endDate): self
237: {
238: $this->initialized['endDate'] = true;
239: $this->endDate = $endDate;
240:
241: return $this;
242: }
243: }
244: