PHP Class IsoCodes\Ssn

Afficher le fichier Open project: ronanguilloux/isocodes Class Usage Examples

Méthodes publiques

Свойство Type Description
$highgroup This list is from September 2007
$possibleGroups The SSA uses a funky method of figuring out what group number to use next. This area has them in the proper order and makes it easier to generate a SSN.
$statePrefixes http://www.ssa.gov/employer/stateweb.htm
$states

Protected Properties

Свойство Type Description
$initialized

Méthodes publiques

Méthode Description
generate ( mixed $state = false, string $separator = '-' ) : false | string Generate an SSN based on state.
validate ( mixed $ssn ) : boolean Validate a SSN.

Méthodes protégées

Méthode Description
initialize ( ) Cleans the high group number list so it is useful.

Method Details

generate() public static méthode

Generate an SSN based on state.
public static generate ( mixed $state = false, string $separator = '-' ) : false | string
$state mixed
$separator string
Résultat false | string (false: bad state found)

initialize() protected static méthode

Cleans the high group number list so it is useful.
protected static initialize ( )

validate() public static méthode

Validate a SSN.
public static validate ( mixed $ssn ) : boolean
$ssn mixed
Résultat boolean : false, or two letter state abbreviation if it is valid

Property Details

$highgroup public_oe static_oe property

This list is from September 2007
public static $highgroup

$initialized protected_oe static_oe property

protected static $initialized

$possibleGroups public_oe static_oe property

The SSA uses a funky method of figuring out what group number to use next. This area has them in the proper order and makes it easier to generate a SSN.
public static $possibleGroups

$statePrefixes public_oe static_oe property

http://www.ssa.gov/employer/stateweb.htm
public static $statePrefixes

$states public_oe static_oe property

public static $states