PHP Class Bluz\Validator\Rule\CountryCode

Inheritance: extends AbstractRule
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$countryCodeList list of valid country codes
$template error template

Public Methods

Method Description
validate ( string $input ) : boolean Check for country code

Method Details

validate() public method

Check for country code
public validate ( string $input ) : boolean
$input string
return boolean

Property Details

$countryCodeList protected property

list of valid country codes
protected $countryCodeList

$template protected property

error template
protected $template