PHP 클래스 Sylius\Bundle\CurrencyBundle\Validator\Constraints\UniqueCurrencyPairValidator

저자: Jan Góralski ([email protected])
상속: extends Symfony\Component\Validator\ConstraintValidator
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__construct ( Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface $exchangeRateRepository )
validate ( $value, Constraint $constraint )

비공개 메소드들

메소드 설명
isCurrencyPairUnique ( Sylius\Component\Currency\Model\CurrencyInterface $baseCurrency, Sylius\Component\Currency\Model\CurrencyInterface $targetCurrency ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface $exchangeRateRepository )
$exchangeRateRepository Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface

validate() 공개 메소드

public validate ( $value, Constraint $constraint )
$constraint Symfony\Component\Validator\Constraint