PHP Класс Sonata\Component\Event\BeforeCalculatePriceEvent

Автор: Hugo Briand ([email protected])
Наследование: extends Symfony\Component\EventDispatcher\Event
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$currency Sonata\Component\Currency\CurrencyInterface
$product Sonata\Component\Product\ProductInterface
$quantity integer
$vat boolean

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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 getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
Результат Sonata\Component\Currency\CurrencyInterface

getProduct() публичный Метод

public getProduct ( ) : Sonata\Component\Product\ProductInterface
Результат Sonata\Component\Product\ProductInterface

getQuantity() публичный Метод

public getQuantity ( ) : integer
Результат integer

getVat() публичный Метод

public getVat ( ) : boolean
Результат boolean

setQuantity() публичный Метод

public setQuantity ( integer $quantity )
$quantity integer

setVat() публичный Метод

public setVat ( boolean $vat )
$vat boolean

Описание свойств

$currency защищенное свойство

protected CurrencyInterface,Sonata\Component\Currency $currency
Результат Sonata\Component\Currency\CurrencyInterface

$product защищенное свойство

protected ProductInterface,Sonata\Component\Product $product
Результат Sonata\Component\Product\ProductInterface

$quantity защищенное свойство

protected int $quantity
Результат integer

$vat защищенное свойство

protected bool $vat
Результат boolean