You are here

class ZoomApiWebhookEvent in Zoom API 8

Same name and namespace in other branches
  1. 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\Event
View 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

Namesort descending Modifiers Type Description Overrides
ZoomApiWebhookEvent::$event protected property Type of the incoming post.
ZoomApiWebhookEvent::$payload protected property Payload of the incoming post.
ZoomApiWebhookEvent::$request protected property Type of the incoming post.
ZoomApiWebhookEvent::getEvent public function Return event.
ZoomApiWebhookEvent::getPayload public function Return payload.
ZoomApiWebhookEvent::getRequest public function Return request.
ZoomApiWebhookEvent::__construct public function ZoomApiWebhookEvent constructor.