PHP Class CommerceGuys\Addressing\Validator\Constraints\CountryConstraintValidator

Inheritance: extends Symfony\Component\Validator\ConstraintValidator
显示文件 Open project: commerceguys/addressing

Protected Properties

Property Type Description
$countryRepository CommerceGuys\Addressing\Country\CountryRepositoryInterface The country repository.

Public Methods

Method Description
__construct ( CommerceGuys\Addressing\Country\CountryRepositoryInterface $countryRepository = null ) Creates a CountryValidator instance.
validate ( $value, Constraint $constraint )

Method Details

__construct() public method

Creates a CountryValidator instance.
public __construct ( CommerceGuys\Addressing\Country\CountryRepositoryInterface $countryRepository = null )
$countryRepository CommerceGuys\Addressing\Country\CountryRepositoryInterface

validate() public method

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

Property Details

$countryRepository protected_oe property

The country repository.
protected CountryRepositoryInterface,CommerceGuys\Addressing\Country $countryRepository
return CommerceGuys\Addressing\Country\CountryRepositoryInterface