Respect\Validation\Rules\IdentityCard::__construct PHP Method

__construct() public method

public __construct ( $countryCode )
    public function __construct($countryCode)
    {
        $shortName = ucfirst(mb_strtolower($countryCode)) . 'IdentityCard';
        $className = __NAMESPACE__ . '\\Locale\\' . $shortName;
        if (!class_exists($className)) {
            throw new ComponentException(sprintf('There is no support for identity cards from "%s"', $countryCode));
        }
        $this->countryCode = $countryCode;
        $this->validatable = new $className();
    }
IdentityCard