PHP Class Sonata\Component\Event\PaymentEvent

Author: Hugo Briand ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$order Sonata\Component\Order\OrderInterface
$response Symfony\Component\HttpFoundation\Response
$transaction Sonata\Component\Payment\TransactionInterface

Public Methods

Method Description
__construct ( Sonata\Component\Order\OrderInterface $order, Sonata\Component\Payment\TransactionInterface $transaction = null, Response $response = null ) Constructor.
getOrder ( ) : Sonata\Component\Order\OrderInterface
getResponse ( ) : Response
getTransaction ( ) : Sonata\Component\Payment\TransactionInterface

Method Details

__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

getOrder() public method

public getOrder ( ) : Sonata\Component\Order\OrderInterface
return Sonata\Component\Order\OrderInterface

getResponse() public method

public getResponse ( ) : Response
return Symfony\Component\HttpFoundation\Response

getTransaction() public method

public getTransaction ( ) : Sonata\Component\Payment\TransactionInterface
return Sonata\Component\Payment\TransactionInterface

Property Details

$order protected property

protected OrderInterface,Sonata\Component\Order $order
return Sonata\Component\Order\OrderInterface

$response protected property

protected Response,Symfony\Component\HttpFoundation $response
return Symfony\Component\HttpFoundation\Response

$transaction protected property

protected TransactionInterface,Sonata\Component\Payment $transaction
return Sonata\Component\Payment\TransactionInterface