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

protected array $countryCodeList
return array

$index public property

public $index

$set public property

public $set