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
Respect
Validation
Rules
CountryCode
PHP Class Respect\Validation\Rules\CountryCode
Inheritance:
extends
Respect\Validation\Rules\AbstractRule
Show file
Open project: respect/validation
Public Properties
Property
Type
Description
$index
$set
Protected Properties
Property
Type
Description
$countryCodeList
array
Public Methods
Method
Description
__construct
(
$set
= self::ALPHA2 )
getAvailableSets
( )
validate
(
$input
)
Private Methods
Method
Description
getCountryCodeList
(
$index
)
Method Details
__construct()
public
method
public
__construct
(
$set
= self::ALPHA2 )
getAvailableSets()
public
static
method
public
static
getAvailableSets
( )
validate()
public
method
public
validate
(
$input
)
Property Details
$countryCodeList
protected property
See link:
http://download.geonames.org/export/dump/countryInfo.txt
protected
array
$countryCodeList
return
array
$index
public property
public
$index
$set
public property
public
$set