class StripeWebhookEvent in Stripe 8
Same name and namespace in other branches
- 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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StripeWebhookEvent:: |
protected | property | Stripe API event object. | |
StripeWebhookEvent:: |
public | function | Gets Stripe API event object. | |
StripeWebhookEvent:: |
public | function | Constructs a Stripe Webhook Event object. |