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 Expense 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 string|null
42: */
43: protected $departmentId;
44: /**
45: * The last time the expense was updated.
46: *
47: * @var \DateTime
48: */
49: protected $updatedAt;
50: /**
51: * @var string
52: */
53: protected $category;
54:
55: /**
56: * Unique ID associated with the expense.
57: */
58: public function getId(): string
59: {
60: return $this->id;
61: }
62:
63: /**
64: * Unique ID associated with the expense.
65: */
66: public function setId(string $id): self
67: {
68: $this->initialized['id'] = true;
69: $this->id = $id;
70:
71: return $this;
72: }
73:
74: /**
75: * The memo of the expense.
76: */
77: public function getMemo(): ?string
78: {
79: return $this->memo;
80: }
81:
82: /**
83: * The memo of the expense.
84: */
85: public function setMemo(?string $memo): self
86: {
87: $this->initialized['memo'] = true;
88: $this->memo = $memo;
89:
90: return $this;
91: }
92:
93: public function getLocationId(): ?string
94: {
95: return $this->locationId;
96: }
97:
98: public function setLocationId(?string $locationId): self
99: {
100: $this->initialized['locationId'] = true;
101: $this->locationId = $locationId;
102:
103: return $this;
104: }
105:
106: public function getDepartmentId(): ?string
107: {
108: return $this->departmentId;
109: }
110:
111: public function setDepartmentId(?string $departmentId): self
112: {
113: $this->initialized['departmentId'] = true;
114: $this->departmentId = $departmentId;
115:
116: return $this;
117: }
118:
119: /**
120: * The last time the expense was updated.
121: */
122: public function getUpdatedAt(): \DateTime
123: {
124: return $this->updatedAt;
125: }
126:
127: /**
128: * The last time the expense was updated.
129: */
130: public function setUpdatedAt(\DateTime $updatedAt): self
131: {
132: $this->initialized['updatedAt'] = true;
133: $this->updatedAt = $updatedAt;
134:
135: return $this;
136: }
137:
138: public function getCategory(): string
139: {
140: return $this->category;
141: }
142:
143: public function setCategory(string $category): self
144: {
145: $this->initialized['category'] = true;
146: $this->category = $category;
147:
148: return $this;
149: }
150: }
151: