PHP Class WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

Author: Adam Piotrowski ([email protected])
Inheritance: extends Price, implements WellCommerce\Bundle\AppBundle\Entity\DiscountablePriceInterface
Mostra file Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$discountedGrossAmount
$discountedNetAmount
$discountedTaxAmount
$validFrom
$validTo

Public Methods

Method Description
getDiscountedGrossAmount ( ) : float
getDiscountedNetAmount ( ) : float
getDiscountedTaxAmount ( ) : float
getFinalGrossAmount ( ) : float
getFinalNetAmount ( ) : float
getFinalTaxAmount ( ) : float
getValidFrom ( )
getValidTo ( )
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 ( )

getValidTo() public method

public getValidTo ( )

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

Property Details

$discountedGrossAmount protected_oe property

protected $discountedGrossAmount

$discountedNetAmount protected_oe property

protected $discountedNetAmount

$discountedTaxAmount protected_oe property

protected $discountedTaxAmount

$validFrom protected_oe property

protected $validFrom

$validTo protected_oe property

protected $validTo