You are here

class StripeWebhookEvent in Stripe 8

Same name and namespace in other branches
  1. 2.x src/Event/StripeWebhookEvent.php \Drupal\stripe\Event\StripeWebhookEvent

Wraps a stripe event for webhook.

Hierarchy

  • class \Drupal\stripe\Event\StripeWebhookEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of StripeWebhookEvent

1 file declares its use of StripeWebhookEvent
StripeWebhookController.php in src/Controller/StripeWebhookController.php

File

src/Event/StripeWebhookEvent.php, line 11

Namespace

Drupal\stripe\Event
View source
class StripeWebhookEvent extends Event {

  /**
   * Stripe API event object.
   *
   * @var \Stripe\Event
   */
  protected $event;

  /**
   * Constructs a Stripe Webhook Event object.
   *
   * @param \Stripe\Event $event
   *   Stripe API event object object.
   */
  public function __construct(StripeEvent $event) {
    $this->event = $event;
  }

  /**
   * Gets Stripe API event object.
   *
   * @return \Stripe\Event
   *   The Stripe API event object
   */
  public function getEvent() {
    return $this->event;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StripeWebhookEvent::$event protected property Stripe API event object.
StripeWebhookEvent::getEvent public function Gets Stripe API event object.
StripeWebhookEvent::__construct public function Constructs a Stripe Webhook Event object.