PHP Class Sonata\Component\Event\AfterCalculatePriceEvent

Author: Hugo Briand ([email protected])
Inheritance: extends BeforeCalculatePriceEvent
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$price float

Public Methods

Method Description
__construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat, integer $quantity, float $price )
getPrice ( ) : float
setPrice ( float $price )

Method Details

__construct() public method

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

getPrice() public method

public getPrice ( ) : float
return float

setPrice() public method

public setPrice ( float $price )
$price float

Property Details

$price protected property

protected float $price
return float