You are here

public function PaymentExecuteAccess::__construct in Payment 8.2

File

src/Event/PaymentExecuteAccess.php, line 57

Class

PaymentExecuteAccess
Provides an event that is dispatched when access is checked for payment execution.

Namespace

Drupal\payment\Event

Code

public function __construct(PaymentInterface $payment, PaymentMethodInterface $payment_method, AccountInterface $account) {
  $this->accessResult = new AccessResultAllowed();
  $this->payment = $payment;
  $this->paymentMethod = $payment_method;
  $this->account = $account;
}