You are here

public function SubscriptionEvent::__construct in Commerce Recurring Framework 8

Constructs a new SubscriptionEvent.

Parameters

\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.

File

src/Event/SubscriptionEvent.php, line 28

Class

SubscriptionEvent
Defines the subscription event.

Namespace

Drupal\commerce_recurring\Event

Code

public function __construct(SubscriptionInterface $subscription) {
  $this->subscription = $subscription;
}