| 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 UpdateWebhookSubscriptionRequest 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 $url; |
| 28: | |
| 29: | |
| 30: | |
| 31: | protected $eventTypes; |
| 32: | |
| 33: | |
| 34: | |
| 35: | protected $status; |
| 36: | |
| 37: | public function getUrl(): string |
| 38: | { |
| 39: | return $this->url; |
| 40: | } |
| 41: | |
| 42: | public function setUrl(string $url): self |
| 43: | { |
| 44: | $this->initialized['url'] = true; |
| 45: | $this->url = $url; |
| 46: | |
| 47: | return $this; |
| 48: | } |
| 49: | |
| 50: | |
| 51: | |
| 52: | |
| 53: | public function getEventTypes(): array |
| 54: | { |
| 55: | return $this->eventTypes; |
| 56: | } |
| 57: | |
| 58: | |
| 59: | |
| 60: | |
| 61: | public function setEventTypes(array $eventTypes): self |
| 62: | { |
| 63: | $this->initialized['eventTypes'] = true; |
| 64: | $this->eventTypes = $eventTypes; |
| 65: | |
| 66: | return $this; |
| 67: | } |
| 68: | |
| 69: | public function getStatus(): string |
| 70: | { |
| 71: | return $this->status; |
| 72: | } |
| 73: | |
| 74: | public function setStatus(string $status): self |
| 75: | { |
| 76: | $this->initialized['status'] = true; |
| 77: | $this->status = $status; |
| 78: | |
| 79: | return $this; |
| 80: | } |
| 81: | } |
| 82: | |