Sonata\Component\Event\PaymentEvent::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Sonata\Component\Order\OrderInterface $order, Sonata\Component\Payment\TransactionInterface $transaction = null, Response $response = null )
$order Sonata\Component\Order\OrderInterface
$transaction Sonata\Component\Payment\TransactionInterface
$response Symfony\Component\HttpFoundation\Response
    public function __construct(OrderInterface $order, TransactionInterface $transaction = null, Response $response = null)
    {
        $this->order = $order;
        $this->transaction = $transaction;
        $this->response = $response;
    }