FacturaScripts

FiscalNumberValidator extends FiscalNumberValidator
in package

Class created by Core/Internal/PluginsDeploy

Table of Contents

Methods

isValidRFC()  : bool
isValidRNC()  : bool
Validate RNC Rep. Dominicana Accept two format : only number: "000000000" or official format: "000-00000-0"
isValidSpainCIF()  : bool
isValidSpainDNI()  : bool
validate()  : bool
Check the number depend on type and return true if the number if valid.

Methods

isValidRFC()

public static isValidRFC(string|null $number) : bool
Parameters
$number : string|null
Return values
bool

isValidRNC()

Validate RNC Rep. Dominicana Accept two format : only number: "000000000" or official format: "000-00000-0"

public static isValidRNC(string|null $number) : bool
Parameters
$number : string|null
Return values
bool

isValidSpainCIF()

public static isValidSpainCIF(string|null $cif) : bool
Parameters
$cif : string|null
Return values
bool

isValidSpainDNI()

public static isValidSpainDNI(string|null $dni) : bool
Parameters
$dni : string|null
Return values
bool

validate()

Check the number depend on type and return true if the number if valid.

public static validate(string|null $type, string|null $number[, bool $force = false ]) : bool
Parameters
$type : string|null
$number : string|null
$force : bool = false
Return values
bool

        
On this page

Search results