Свойство | Type | Description | |
---|---|---|---|
$orderElementManager | Sonata\CoreBundle\Model\ManagerInterface | ||
$productPool |
Méthode | Description | |
---|---|---|
__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 ) |
Méthode | Description | |
---|---|---|
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 | |
Résultat | Sonata\CoreBundle\Model\ManagerInterface |
protected getProductProvider ( string $productType ) : Sonata\Component\Product\ProductProviderInterface | ||
$productType | string | |
Résultat | Sonata\Component\Product\ProductProviderInterface |
public process ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) | ||
$event | Sonata\NotificationBundle\Consumer\ConsumerEvent |
protected ManagerInterface,Sonata\CoreBundle\Model $orderElementManager | ||
Résultat | Sonata\CoreBundle\Model\ManagerInterface |