PHP Class Sonata\Component\Event\BeforeCalculatePriceEvent

Author: Hugo Briand ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$currency Sonata\Component\Currency\CurrencyInterface
$product Sonata\Component\Product\ProductInterface
$quantity integer
$vat boolean

Méthodes publiques

Méthode Description
__construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat, integer $quantity )
getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
getProduct ( ) : Sonata\Component\Product\ProductInterface
getQuantity ( ) : integer
getVat ( ) : boolean
setQuantity ( integer $quantity )
setVat ( boolean $vat )

Method Details

__construct() public méthode

public __construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat, integer $quantity )
$product Sonata\Component\Product\ProductInterface
$currency Sonata\Component\Currency\CurrencyInterface
$vat boolean
$quantity integer

getCurrency() public méthode

public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
Résultat Sonata\Component\Currency\CurrencyInterface

getProduct() public méthode

public getProduct ( ) : Sonata\Component\Product\ProductInterface
Résultat Sonata\Component\Product\ProductInterface

getQuantity() public méthode

public getQuantity ( ) : integer
Résultat integer

getVat() public méthode

public getVat ( ) : boolean
Résultat boolean

setQuantity() public méthode

public setQuantity ( integer $quantity )
$quantity integer

setVat() public méthode

public setVat ( boolean $vat )
$vat boolean

Property Details

$currency protected_oe property

protected CurrencyInterface,Sonata\Component\Currency $currency
Résultat Sonata\Component\Currency\CurrencyInterface

$product protected_oe property

protected ProductInterface,Sonata\Component\Product $product
Résultat Sonata\Component\Product\ProductInterface

$quantity protected_oe property

protected int $quantity
Résultat integer

$vat protected_oe property

protected bool $vat
Résultat boolean