PHP 클래스 Sonata\PaymentBundle\Consumer\PaymentProcessOrderElementConsumer

저자: Sylvain Deloux ([email protected])
상속: implements Sonata\NotificationBundle\Consumer\ConsumerInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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