You are here

public function CouponEvent::__construct in Commerce Core 8.2

Constructs a new CouponEvent.

Parameters

\Drupal\commerce_promotion\Entity\CouponInterface $coupon: The coupon.

File

modules/promotion/src/Event/CouponEvent.php, line 28

Class

CouponEvent
Defines the coupon event.

Namespace

Drupal\commerce_promotion\Event

Code

public function __construct(CouponInterface $coupon) {
  $this->coupon = $coupon;
}