PHP Trait Elcodi\Plugin\CustomShippingBundle\Entity\Traits\ShippingPriceRangeTrait

Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$fromPriceAmount integer fromPriceAmount
$fromPriceCurrency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface fromPriceCurrency
$toPriceAmount integer toPriceAmount
$toPriceCurrency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface toPriceCurrency

Public Methods

Method Description
getFromPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Get from price
getToPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Get to price
setFromPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price ) Sets from price
setToPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price ) Sets to price

Method Details

getFromPrice() public method

Get from price
public getFromPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface
return Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

getToPrice() public method

Get to price
public getToPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface
return Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

setFromPrice() public method

Sets from price
public setFromPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price )
$price Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

setToPrice() public method

Sets to price
public setToPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price )
$price Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

Property Details

$fromPriceAmount protected property

fromPriceAmount
protected int $fromPriceAmount
return integer

$fromPriceCurrency protected property

fromPriceCurrency
protected CurrencyInterface,Elcodi\Component\Currency\Entity\Interfaces $fromPriceCurrency
return Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface

$toPriceAmount protected property

toPriceAmount
protected int $toPriceAmount
return integer

$toPriceCurrency protected property

toPriceCurrency
protected CurrencyInterface,Elcodi\Component\Currency\Entity\Interfaces $toPriceCurrency
return Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface