Свойство | Тип | Описание | |
---|---|---|---|
$orderElementManager | Sonata\CoreBundle\Model\ManagerInterface | ||
$productPool |
Метод | Описание | |
---|---|---|
__construct ( Sonata\CoreBundle\Model\ManagerInterface $orderElementManager, |
||
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. |
public __construct ( Sonata\CoreBundle\Model\ManagerInterface $orderElementManager, |
||
$orderElementManager | Sonata\CoreBundle\Model\ManagerInterface | |
$productPool |
protected getProductManager ( string $productType ) : Sonata\CoreBundle\Model\ManagerInterface | ||
$productType | string | |
Результат | Sonata\CoreBundle\Model\ManagerInterface |
protected getProductProvider ( string $productType ) : Sonata\Component\Product\ProductProviderInterface | ||
$productType | string | |
Результат | Sonata\Component\Product\ProductProviderInterface |
public process ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) | ||
$event | Sonata\NotificationBundle\Consumer\ConsumerEvent |
protected ManagerInterface,Sonata\CoreBundle\Model $orderElementManager | ||
Результат | Sonata\CoreBundle\Model\ManagerInterface |