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\Expenses\Model;
12:
13: class ExpandableExpense 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: * Unique ID associated with the expense.
26: *
27: * @var string
28: */
29: protected $id;
30: /**
31: * The memo of the expense.
32: *
33: * @var string|null
34: */
35: protected $memo;
36: /**
37: * @var string|null
38: */
39: protected $locationId;
40: /**
41: * @var ExpandableExpenseLocation
42: */
43: protected $location;
44: /**
45: * @var string|null
46: */
47: protected $departmentId;
48: /**
49: * @var ExpandableExpenseDepartment
50: */
51: protected $department;
52: /**
53: * The last time the expense was updated.
54: *
55: * @var \DateTime
56: */
57: protected $updatedAt;
58: /**
59: * @var string
60: */
61: protected $category;
62: /**
63: * A list of receipts associated with the expense.
64: *
65: * @var Receipt[]|null
66: */
67: protected $receipts;
68:
69: /**
70: * Unique ID associated with the expense.
71: */
72: public function getId(): string
73: {
74: return $this->id;
75: }
76:
77: /**
78: * Unique ID associated with the expense.
79: */
80: public function setId(string $id): self
81: {
82: $this->initialized['id'] = true;
83: $this->id = $id;
84:
85: return $this;
86: }
87:
88: /**
89: * The memo of the expense.
90: */
91: public function getMemo(): ?string
92: {
93: return $this->memo;
94: }
95:
96: /**
97: * The memo of the expense.
98: */
99: public function setMemo(?string $memo): self
100: {
101: $this->initialized['memo'] = true;
102: $this->memo = $memo;
103:
104: return $this;
105: }
106:
107: public function getLocationId(): ?string
108: {
109: return $this->locationId;
110: }
111:
112: public function setLocationId(?string $locationId): self
113: {
114: $this->initialized['locationId'] = true;
115: $this->locationId = $locationId;
116:
117: return $this;
118: }
119:
120: public function getLocation(): ExpandableExpenseLocation
121: {
122: return $this->location;
123: }
124:
125: public function setLocation(ExpandableExpenseLocation $location): self
126: {
127: $this->initialized['location'] = true;
128: $this->location = $location;
129:
130: return $this;
131: }
132:
133: public function getDepartmentId(): ?string
134: {
135: return $this->departmentId;
136: }
137:
138: public function setDepartmentId(?string $departmentId): self
139: {
140: $this->initialized['departmentId'] = true;
141: $this->departmentId = $departmentId;
142:
143: return $this;
144: }
145:
146: public function getDepartment(): ExpandableExpenseDepartment
147: {
148: return $this->department;
149: }
150:
151: public function setDepartment(ExpandableExpenseDepartment $department): self
152: {
153: $this->initialized['department'] = true;
154: $this->department = $department;
155:
156: return $this;
157: }
158:
159: /**
160: * The last time the expense was updated.
161: */
162: public function getUpdatedAt(): \DateTime
163: {
164: return $this->updatedAt;
165: }
166:
167: /**
168: * The last time the expense was updated.
169: */
170: public function setUpdatedAt(\DateTime $updatedAt): self
171: {
172: $this->initialized['updatedAt'] = true;
173: $this->updatedAt = $updatedAt;
174:
175: return $this;
176: }
177:
178: public function getCategory(): string
179: {
180: return $this->category;
181: }
182:
183: public function setCategory(string $category): self
184: {
185: $this->initialized['category'] = true;
186: $this->category = $category;
187:
188: return $this;
189: }
190:
191: /**
192: * A list of receipts associated with the expense.
193: *
194: * @return Receipt[]|null
195: */
196: public function getReceipts(): ?array
197: {
198: return $this->receipts;
199: }
200:
201: /**
202: * A list of receipts associated with the expense.
203: *
204: * @param Receipt[]|null $receipts
205: */
206: public function setReceipts(?array $receipts): self
207: {
208: $this->initialized['receipts'] = true;
209: $this->receipts = $receipts;
210:
211: return $this;
212: }
213: }
214: