PHP Класс Sylius\Bundle\CurrencyBundle\Validator\Constraints\UniqueCurrencyPairValidator

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

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

Метод Описание
__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