PHP Class Sonata\PaymentBundle\Consumer\PaymentProcessOrderConsumer

Author: Sylvain Deloux ([email protected])
Inheritance: implements Sonata\NotificationBundle\Consumer\ConsumerInterface
Mostrar archivo Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$backend Sonata\NotificationBundle\Backend\BackendInterface
$orderManager Sonata\Component\Order\OrderManagerInterface
$transactionManager Sonata\CoreBundle\Model\ManagerInterface

Public Methods

Method Description
__construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\CoreBundle\Model\ManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $backend )
process ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event )

Protected Methods

Method Description
getOrder ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : Sonata\Component\Order\OrderInterface Get the related Order.
getTransaction ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : Sonata\Component\Payment\TransactionInterface Get the related Transaction.

Method Details

__construct() public method

public __construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\CoreBundle\Model\ManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $backend )
$orderManager Sonata\Component\Order\OrderManagerInterface
$transactionManager Sonata\CoreBundle\Model\ManagerInterface
$backend Sonata\NotificationBundle\Backend\BackendInterface

getOrder() protected method

Get the related Order.
protected getOrder ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : Sonata\Component\Order\OrderInterface
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
return Sonata\Component\Order\OrderInterface

getTransaction() protected method

Get the related Transaction.
protected getTransaction ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : Sonata\Component\Payment\TransactionInterface
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
return Sonata\Component\Payment\TransactionInterface

process() public method

public process ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent

Property Details

$backend protected_oe property

protected BackendInterface,Sonata\NotificationBundle\Backend $backend
return Sonata\NotificationBundle\Backend\BackendInterface

$orderManager protected_oe property

protected OrderManagerInterface,Sonata\Component\Order $orderManager
return Sonata\Component\Order\OrderManagerInterface

$transactionManager protected_oe property

protected ManagerInterface,Sonata\CoreBundle\Model $transactionManager
return Sonata\CoreBundle\Model\ManagerInterface