class ZoomApiWebhookEvent in Zoom API 8
Same name and namespace in other branches
- 2.0.x src/Event/ZoomApiWebhookEvent.php \Drupal\zoomapi\Event\ZoomApiWebhookEvent
Class ZoomApiWebhookEvent.
@package Drupal\zoomapi\Event
Hierarchy
- class \Drupal\zoomapi\Event\ZoomApiWebhookEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of ZoomApiWebhookEvent
1 file declares its use of ZoomApiWebhookEvent
- ZoomApiWebhooksController.php in src/
Controller/ ZoomApiWebhooksController.php
File
- src/
Event/ ZoomApiWebhookEvent.php, line 13
Namespace
Drupal\zoomapi\EventView source
class ZoomApiWebhookEvent extends Event {
/**
* Payload of the incoming post.
*
* @var array
*/
protected $payload;
/**
* Type of the incoming post.
*
* @var string
*/
protected $event;
/**
* Type of the incoming post.
*
* @var \Symfony\Component\HttpFoundation\Request
*/
protected $request;
/**
* ZoomApiWebhookEvent constructor.
*
* @param string $event
* The type of webhook incoming.
* @param array $payload
* The data posted.
* @param \Symfony\Component\HttpFoundation\Request $request
* The orignal request.
*/
public function __construct($event, array $payload, Request $request) {
$this->event = $event;
$this->payload = $payload;
$this->request = $request;
}
/**
* Return payload.
*
* @return array
* Zooms JSON payload decoded.
*/
public function getPayload() {
return $this->payload;
}
/**
* Return event.
*
* @return string
* The type of webhook event defined by Zoom.
*/
public function getEvent() {
return $this->event;
}
/**
* Return request.
*
* @return \Symfony\Component\HttpFoundation\Request
* The original request in case you need more.
*/
public function getRequest() {
return $this->request;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ZoomApiWebhookEvent:: |
protected | property | Type of the incoming post. | |
ZoomApiWebhookEvent:: |
protected | property | Payload of the incoming post. | |
ZoomApiWebhookEvent:: |
protected | property | Type of the incoming post. | |
ZoomApiWebhookEvent:: |
public | function | Return event. | |
ZoomApiWebhookEvent:: |
public | function | Return payload. | |
ZoomApiWebhookEvent:: |
public | function | Return request. | |
ZoomApiWebhookEvent:: |
public | function | ZoomApiWebhookEvent constructor. |