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\Webhooks\Model; |
12: | |
13: | class WebhookSubscription 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: | * @var string |
26: | */ |
27: | protected $id; |
28: | /** |
29: | * @var string |
30: | */ |
31: | protected $url; |
32: | /** |
33: | * @var string[] |
34: | */ |
35: | protected $eventTypes; |
36: | /** |
37: | * @var string |
38: | */ |
39: | protected $status; |
40: | |
41: | public function getId(): string |
42: | { |
43: | return $this->id; |
44: | } |
45: | |
46: | public function setId(string $id): self |
47: | { |
48: | $this->initialized['id'] = true; |
49: | $this->id = $id; |
50: | |
51: | return $this; |
52: | } |
53: | |
54: | public function getUrl(): string |
55: | { |
56: | return $this->url; |
57: | } |
58: | |
59: | public function setUrl(string $url): self |
60: | { |
61: | $this->initialized['url'] = true; |
62: | $this->url = $url; |
63: | |
64: | return $this; |
65: | } |
66: | |
67: | /** |
68: | * @return string[] |
69: | */ |
70: | public function getEventTypes(): array |
71: | { |
72: | return $this->eventTypes; |
73: | } |
74: | |
75: | /** |
76: | * @param string[] $eventTypes |
77: | */ |
78: | public function setEventTypes(array $eventTypes): self |
79: | { |
80: | $this->initialized['eventTypes'] = true; |
81: | $this->eventTypes = $eventTypes; |
82: | |
83: | return $this; |
84: | } |
85: | |
86: | public function getStatus(): string |
87: | { |
88: | return $this->status; |
89: | } |
90: | |
91: | public function setStatus(string $status): self |
92: | { |
93: | $this->initialized['status'] = true; |
94: | $this->status = $status; |
95: | |
96: | return $this; |
97: | } |
98: | } |
99: |