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\EventCode
public function __construct(CouponInterface $coupon) {
$this->coupon = $coupon;
}