Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Bluz
Validator
Rule
CountryCode
PHP Class Bluz\Validator\Rule\CountryCode
See link:
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
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