1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Webhooks\Model; |
12: | |
13: | class UserUpdatedEvent 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 $eventType; |
28: | |
29: | |
30: | |
31: | protected $userId; |
32: | |
33: | |
34: | |
35: | protected $companyId; |
36: | |
37: | |
38: | |
39: | protected $updatedAttributes; |
40: | |
41: | public function getEventType(): string |
42: | { |
43: | return $this->eventType; |
44: | } |
45: | |
46: | public function setEventType(string $eventType): self |
47: | { |
48: | $this->initialized['eventType'] = true; |
49: | $this->eventType = $eventType; |
50: | |
51: | return $this; |
52: | } |
53: | |
54: | public function getUserId(): string |
55: | { |
56: | return $this->userId; |
57: | } |
58: | |
59: | public function setUserId(string $userId): self |
60: | { |
61: | $this->initialized['userId'] = true; |
62: | $this->userId = $userId; |
63: | |
64: | return $this; |
65: | } |
66: | |
67: | public function getCompanyId(): string |
68: | { |
69: | return $this->companyId; |
70: | } |
71: | |
72: | public function setCompanyId(string $companyId): self |
73: | { |
74: | $this->initialized['companyId'] = true; |
75: | $this->companyId = $companyId; |
76: | |
77: | return $this; |
78: | } |
79: | |
80: | |
81: | |
82: | |
83: | public function getUpdatedAttributes(): array |
84: | { |
85: | return $this->updatedAttributes; |
86: | } |
87: | |
88: | |
89: | |
90: | |
91: | public function setUpdatedAttributes(array $updatedAttributes): self |
92: | { |
93: | $this->initialized['updatedAttributes'] = true; |
94: | $this->updatedAttributes = $updatedAttributes; |
95: | |
96: | return $this; |
97: | } |
98: | } |
99: | |