PHP Class IsoCodes\Vat

See also: http://ec.europa.eu/taxation_customs/vies/faq.html
Inheritance: implements isocodes\IsoCodeInterface
Afficher le fichier Open project: ronanguilloux/isocodes Class Usage Examples

Méthodes publiques

Свойство Type Description
$patterns array Regular expression patterns per country code.

Méthodes publiques

Méthode Description
isValidCountryCode ( string $vat ) : boolean Returns true if value is valid country code, false otherwise.
validate ( mixed $vat ) : boolean validate Checks if $vat is a valid, European Union VAT number.

Method Details

isValidCountryCode() public static méthode

Returns true if value is valid country code, false otherwise.
public static isValidCountryCode ( string $vat ) : boolean
$vat string
Résultat boolean

validate() public static méthode

validate Checks if $vat is a valid, European Union VAT number.
public static validate ( mixed $vat ) : boolean
$vat mixed
Résultat boolean

Property Details

$patterns public_oe static_oe property

Regular expression patterns per country code.
public static array $patterns
Résultat array