platform/api/symfony/Component/Validator/Constraints/LuhnValidator.yaml
2024-09-02 10:44:11 -07:00

47 lines
1.3 KiB
YAML

name: LuhnValidator
class_comment: '# * 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.
# *
# * @see http://en.wikipedia.org/wiki/Luhn_algorithm
# *
# * @author Tim Nagel <t.nagel@infinite.net.au>
# * @author Greg Knapp http://gregk.me/2011/php-implementation-of-bank-card-luhn-algorithm/
# * @author Bernhard Schussek <bschussek@gmail.com>'
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
- name: ConstraintValidator
type: class
source: Symfony\Component\Validator\ConstraintValidator
- name: UnexpectedTypeException
type: class
source: Symfony\Component\Validator\Exception\UnexpectedTypeException
- name: UnexpectedValueException
type: class
source: Symfony\Component\Validator\Exception\UnexpectedValueException
properties: []
methods:
- name: validate
visibility: public
parameters:
- name: value
- name: constraint
comment: null
traits:
- Symfony\Component\Validator\Constraint
- Symfony\Component\Validator\ConstraintValidator
- Symfony\Component\Validator\Exception\UnexpectedTypeException
- Symfony\Component\Validator\Exception\UnexpectedValueException
interfaces: []