PHP 클래스 Sonata\Component\Event\BeforeCalculatePriceEvent

저자: Hugo Briand ([email protected])
상속: extends Symfony\Component\EventDispatcher\Event
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

보호된 프로퍼티들

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