PHP Class DragonBe\Vies\Validator\ValidatorES

Inheritance: extends ValidatorAbstract
Datei anzeigen Open project: dragonbe/vies

Protected Properties

Property Type Description
$allowedC1Alphabetic array Allowed C1 if C9 is Alphabetic
$allowedC1Numeric array Allowed C1 if C9 is Numeric
$checkCharacter array Check Character: 1-A, 2-B, 3-C, 4-D, 5-E, 6-F, 7-G, 8-H, 9-I, 10-J

Public Methods

Method Description
validate ( string $vatNumber ) : boolean

Private Methods

Method Description
validateJuridical ( $vatNumber ) : string
validateNational ( $vatNumber ) : string

Method Details

validate() public method

public validate ( string $vatNumber ) : boolean
$vatNumber string
return boolean

Property Details

$allowedC1Alphabetic protected_oe property

Allowed C1 if C9 is Alphabetic
protected array $allowedC1Alphabetic
return array

$allowedC1Numeric protected_oe property

Allowed C1 if C9 is Numeric
protected array $allowedC1Numeric
return array

$checkCharacter protected_oe property

Check Character: 1-A, 2-B, 3-C, 4-D, 5-E, 6-F, 7-G, 8-H, 9-I, 10-J
protected array $checkCharacter
return array