PHP Класс Sonata\PaymentBundle\Consumer\PaymentProcessOrderElementConsumer

Автор: Sylvain Deloux ([email protected])
Наследование: implements Sonata\NotificationBundle\Consumer\ConsumerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$orderElementManager Sonata\CoreBundle\Model\ManagerInterface
$productPool Sonata\Component\Product\Pool

Открытые методы

Метод Описание
__construct ( Sonata\CoreBundle\Model\ManagerInterface $orderElementManager, Pool $productPool )
generateDiffValue ( integer $transactionStatus, integer $orderStatus, integer $quantity ) : integer Calculate diff value for Product stock update (base on Transaction and Order statuses).
process ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event )

Защищенные методы

Метод Описание
getProductManager ( string $productType ) : Sonata\CoreBundle\Model\ManagerInterface Get the Manager of the given Product.
getProductProvider ( string $productType ) : Sonata\Component\Product\ProductProviderInterface Get the ProductProvider of the given Product.

Описание методов

__construct() публичный Метод

public __construct ( Sonata\CoreBundle\Model\ManagerInterface $orderElementManager, Pool $productPool )
$orderElementManager Sonata\CoreBundle\Model\ManagerInterface
$productPool Sonata\Component\Product\Pool

generateDiffValue() публичный Метод

Calculate diff value for Product stock update (base on Transaction and Order statuses).
public generateDiffValue ( integer $transactionStatus, integer $orderStatus, integer $quantity ) : integer
$transactionStatus integer
$orderStatus integer
$quantity integer
Результат integer

getProductManager() защищенный Метод

Get the Manager of the given Product.
protected getProductManager ( string $productType ) : Sonata\CoreBundle\Model\ManagerInterface
$productType string
Результат Sonata\CoreBundle\Model\ManagerInterface

getProductProvider() защищенный Метод

Get the ProductProvider of the given Product.
protected getProductProvider ( string $productType ) : Sonata\Component\Product\ProductProviderInterface
$productType string
Результат Sonata\Component\Product\ProductProviderInterface

process() публичный Метод

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

Описание свойств

$orderElementManager защищенное свойство

protected ManagerInterface,Sonata\CoreBundle\Model $orderElementManager
Результат Sonata\CoreBundle\Model\ManagerInterface

$productPool защищенное свойство

protected Pool,Sonata\Component\Product $productPool
Результат Sonata\Component\Product\Pool