PHP Класс Sylius\Behat\Context\Setup\ExchangeRateContext

Автор: Jan Góralski ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Factory\FactoryInterface $exchangeRateFactory, Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface $exchangeRateRepository, Doctrine\Common\Persistence\ObjectManager $entityManager )
theExchangeRateRatioForSourceAndTargetHasChangedTo ( $sourceCurrencyCode, $targetCurrencyCode, $ratio )
thereIsAnExchangeRateWithSourceCurrencyAndTargetCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $sourceCurrency, Sylius\Component\Currency\Model\CurrencyInterface $targetCurrency, $ratio )

Приватные методы

Метод Описание
createExchangeRate ( Sylius\Component\Currency\Model\CurrencyInterface $sourceCurrency, Sylius\Component\Currency\Model\CurrencyInterface $targetCurrency, float $ratio = 1 ) : Sylius\Component\Currency\Model\ExchangeRateInterface
saveExchangeRate ( Sylius\Component\Currency\Model\ExchangeRateInterface $exchangeRate )

Описание методов

__construct() публичный Метод

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Factory\FactoryInterface $exchangeRateFactory, Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface $exchangeRateRepository, Doctrine\Common\Persistence\ObjectManager $entityManager )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$exchangeRateFactory Sylius\Component\Resource\Factory\FactoryInterface
$exchangeRateRepository Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface
$entityManager Doctrine\Common\Persistence\ObjectManager

theExchangeRateRatioForSourceAndTargetHasChangedTo() публичный Метод

public theExchangeRateRatioForSourceAndTargetHasChangedTo ( $sourceCurrencyCode, $targetCurrencyCode, $ratio )

thereIsAnExchangeRateWithSourceCurrencyAndTargetCurrency() публичный Метод

public thereIsAnExchangeRateWithSourceCurrencyAndTargetCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $sourceCurrency, Sylius\Component\Currency\Model\CurrencyInterface $targetCurrency, $ratio )
$sourceCurrency Sylius\Component\Currency\Model\CurrencyInterface
$targetCurrency Sylius\Component\Currency\Model\CurrencyInterface