Свойство | Тип | Описание | |
---|---|---|---|
$currencyRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface | ||
$helper | WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface | ||
$managedCurrencies | array | ||
$ratesRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface |
Метод | Описание | |
---|---|---|
__construct ( WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface $currencyRepository, WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface $ratesRepository, WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $helper ) | Constructor |
Метод | Описание | |
---|---|---|
addUpdateExchangeRate ( string $currencyFrom, string $currencyTo, float $rate ) | Adds new rate or updates existing one | |
formatExchangeRate ( float $rate ) : string | Formats the exchange rate | |
getCurrencies ( ) : |
Returns all currencies from repository | |
setManagedCurrencies ( ) | Sets all managed currencies |
public __construct ( WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface $currencyRepository, WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface $ratesRepository, WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $helper ) | ||
$currencyRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface | |
$ratesRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface | |
$helper | WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface |
protected formatExchangeRate ( float $rate ) : string | ||
$rate | float | |
Результат | string |
protected getCurrencies ( ) : |
||
Результат |
protected setManagedCurrencies ( ) |
protected CurrencyRepositoryInterface,WellCommerce\Bundle\CurrencyBundle\Repository $currencyRepository | ||
Результат | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface |
protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $helper | ||
Результат | WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface |