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 CreateWebhookSubscriptionRequest 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 $url;
28: /**
29: * The Brex API sends webhooks for the events listed below.
30: *
31: * @var string[]
32: */
33: protected $eventTypes;
34:
35: public function getUrl(): string
36: {
37: return $this->url;
38: }
39:
40: public function setUrl(string $url): self
41: {
42: $this->initialized['url'] = true;
43: $this->url = $url;
44:
45: return $this;
46: }
47:
48: /**
49: * The Brex API sends webhooks for the events listed below.
50: *
51: * @return string[]
52: */
53: public function getEventTypes(): array
54: {
55: return $this->eventTypes;
56: }
57:
58: /**
59: * The Brex API sends webhooks for the events listed below.
60: *
61: * @param string[] $eventTypes
62: */
63: public function setEventTypes(array $eventTypes): self
64: {
65: $this->initialized['eventTypes'] = true;
66: $this->eventTypes = $eventTypes;
67:
68: return $this;
69: }
70: }
71: