Свойство | Type | Description | |
---|---|---|---|
$currencyRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface | ||
$helper | WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface | ||
$managedCurrencies | array | ||
$ratesRepository | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface |
Méthode | Description | |
---|---|---|
__construct ( WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface $currencyRepository, WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRateRepositoryInterface $ratesRepository, WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $helper ) | Constructor |
Méthode | Description | |
---|---|---|
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 | |
Résultat | string |
protected getCurrencies ( ) : |
||
Résultat |
protected setManagedCurrencies ( ) |
protected CurrencyRepositoryInterface,WellCommerce\Bundle\CurrencyBundle\Repository $currencyRepository | ||
Résultat | WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface |
protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $helper | ||
Résultat | WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface |