PHP 클래스 Sylius\Behat\Context\Setup\ExchangeRateContext

저자: Jan Góralski ([email protected])
상속: implements Behat\Behat\Context\Context
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__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