public function PaymentStatusSet::__construct in Payment 8.2
File
- src/
Event/ PaymentStatusSet.php, line 38
Class
- PaymentStatusSet
- Provides an event that is dispatched after a new status is set on a payment.
Namespace
Drupal\payment\EventCode
public function __construct(PaymentInterface $payment, PaymentStatusInterface $previous_payment_status = NULL) {
$this->payment = $payment;
$this->previousPaymentStatus = $previous_payment_status;
}