esewa-1.1.2/src/Event/EsewaCheckoutPaymentEvent.php
src/Event/EsewaCheckoutPaymentEvent.php
<?php
namespace Drupal\esewa\Event;
use Drupal\commerce_order\Entity\OrderInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the event for filtering the available payment gateways.
*
* @see \Drupal\commerce_payment\Event\PaymentEvents
*/
class CommerceEsewaCheckoutPaymentEvent extends Event {
/**
* The order.
*
* @var \Drupal\commerce_order\Entity\OrderInterface
*/
protected $order;
/**
* Constructs a new FilterPaymentGatewaysEvent object.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
*/
public function __construct(OrderInterface $order) {
$this->order = $order;
}
/**
* Gets the order.
*
* @return \Drupal\commerce_order\Entity\OrderInterface
* The order.
*/
public function getOrder() {
return $this->order;
}
}