public function StripeWebhookEvent::__construct in Stripe 8
Same name and namespace in other branches
- 2.x src/Event/StripeWebhookEvent.php \Drupal\stripe\Event\StripeWebhookEvent::__construct()
Constructs a Stripe Webhook Event object.
Parameters
\Stripe\Event $event: Stripe API event object object.
File
- src/
Event/ StripeWebhookEvent.php, line 26
Class
- StripeWebhookEvent
- Wraps a stripe event for webhook.
Namespace
Drupal\stripe\EventCode
public function __construct(StripeEvent $event) {
$this->event = $event;
}