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.
@author Tim Nagel <t.nagel@infinite.net.au> @author Greg Knapp http://gregk.me/2011/php-implementation-of-bank-card-luhn-algorithm/
Expanded class hierarchy of LuhnValidator
http://en.wikipedia.org/wiki/Luhn_algorithm
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintValidator:: |
protected | property | ||
ConstraintValidator:: |
public | function |
Initializes the constraint validator. Overrides ConstraintValidatorInterface:: |
1 |
LuhnValidator:: |
public | function |
Validates a creditcard number with the Luhn algorithm. Overrides ConstraintValidatorInterface:: |