PHP Class WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyRate

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\DoctrineBundle\Entity\AbstractEntity, implements WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyRateInterface, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable
Show file Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$currencyFrom WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyInterface
$currencyTo WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyInterface
$exchangeRate float

Public Methods

Method Description
getCurrencyFrom ( ) : string
getCurrencyTo ( ) : string
getExchangeRate ( ) : float
setCurrencyFrom ( string $currencyFrom )
setCurrencyTo ( string $currencyTo )
setExchangeRate ( float $exchangeRate )

Method Details

getCurrencyFrom() public method

public getCurrencyFrom ( ) : string
return string

getCurrencyTo() public method

public getCurrencyTo ( ) : string
return string

getExchangeRate() public method

public getExchangeRate ( ) : float
return float

setCurrencyFrom() public method

public setCurrencyFrom ( string $currencyFrom )
$currencyFrom string

setCurrencyTo() public method

public setCurrencyTo ( string $currencyTo )
$currencyTo string

setExchangeRate() public method

public setExchangeRate ( float $exchangeRate )
$exchangeRate float

Property Details

$currencyFrom protected property

protected CurrencyInterface,WellCommerce\Bundle\CurrencyBundle\Entity $currencyFrom
return WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyInterface

$currencyTo protected property

protected CurrencyInterface,WellCommerce\Bundle\CurrencyBundle\Entity $currencyTo
return WellCommerce\Bundle\CurrencyBundle\Entity\CurrencyInterface

$exchangeRate protected property

protected float $exchangeRate
return float