PHP Interface WellCommerce\Bundle\AppBundle\Entity\DiscountablePriceInterface

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\AppBundle\Entity\PriceInterface
Exibir arquivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
getDiscountedGrossAmount ( ) : float
getDiscountedNetAmount ( ) : float
getDiscountedTaxAmount ( ) : float
getFinalGrossAmount ( ) : float
getFinalNetAmount ( ) : float
getFinalTaxAmount ( ) : float
getValidFrom ( ) : DateTime | null
getValidTo ( ) : DateTime | null
isDiscountValid ( ) : boolean
setDiscountedGrossAmount ( float $discountedGrossAmount )
setDiscountedNetAmount ( float $discountedNetAmount )
setDiscountedTaxAmount ( float $discountedTaxAmount )
setValidFrom ( DateTime $validFrom = null )
setValidTo ( DateTime $validTo = null )

Method Details

getDiscountedGrossAmount() public method

public getDiscountedGrossAmount ( ) : float
return float

getDiscountedNetAmount() public method

public getDiscountedNetAmount ( ) : float
return float

getDiscountedTaxAmount() public method

public getDiscountedTaxAmount ( ) : float
return float

getFinalGrossAmount() public method

public getFinalGrossAmount ( ) : float
return float

getFinalNetAmount() public method

public getFinalNetAmount ( ) : float
return float

getFinalTaxAmount() public method

public getFinalTaxAmount ( ) : float
return float

getValidFrom() public method

public getValidFrom ( ) : DateTime | null
return DateTime | null

getValidTo() public method

public getValidTo ( ) : DateTime | null
return DateTime | null

isDiscountValid() public method

public isDiscountValid ( ) : boolean
return boolean

setDiscountedGrossAmount() public method

public setDiscountedGrossAmount ( float $discountedGrossAmount )
$discountedGrossAmount float

setDiscountedNetAmount() public method

public setDiscountedNetAmount ( float $discountedNetAmount )
$discountedNetAmount float

setDiscountedTaxAmount() public method

public setDiscountedTaxAmount ( float $discountedTaxAmount )
$discountedTaxAmount float

setValidFrom() public method

public setValidFrom ( DateTime $validFrom = null )
$validFrom DateTime

setValidTo() public method

public setValidTo ( DateTime $validTo = null )
$validTo DateTime