class LuhnValidator extendsConstraintValidator

Validates a PAN using the LUHN Algorithm.

For a list of example card numbers that are used to test this class, please see the LuhnValidatorTest class.

Methods

void
validate(mixed$value,Constraint$constraint)

No description

Details

void validate(mixed$value,Constraint$constraint)

Parameters

mixed $value
Constraint $constraint

Return Value

void