PHP Class Sylius\Bundle\CurrencyBundle\Validator\Constraints\UniqueCurrencyPairValidator

Author: Jan Góralski ([email protected])
Inheritance: extends Symfony\Component\Validator\ConstraintValidator
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
__construct ( Sylius\Component\Currency\Repository\ExchangeRateRepositoryInterface $exchangeRateRepository )
validate ( $value, Constraint $constraint )

Private Methods

Méthode Description
isCurrencyPairUnique ( Sylius\Component\Currency\Model\CurrencyInterface $baseCurrency, Sylius\Component\Currency\Model\CurrencyInterface $targetCurrency ) : boolean

Method Details

__construct() public méthode

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

validate() public méthode

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