public function PaymentEvent::__construct in Commerce Core 8.2
Constructs a new PaymentEvent.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
File
- modules/
payment/ src/ Event/ PaymentEvent.php, line 28
Class
- PaymentEvent
- Defines the payment event.
Namespace
Drupal\commerce_payment\EventCode
public function __construct(PaymentInterface $payment) {
$this->payment = $payment;
}