api/symfony/Component/Validator/Constraints/Luhn.yaml

35 lines
1.5 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: Luhn
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: message
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value (typically a credit card number) passes the\
\ Luhn algorithm.\n# *\n# * @see https://en.wikipedia.org/wiki/Luhn_algorithm\n\
# *\n# * @author Tim Nagel <t.nagel@infinite.net.au>\n# * @author Greg Knapp http://gregk.me/2011/php-implementation-of-bank-card-luhn-algorithm/\n\
# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# #[\\Attribute(\\\
Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n\
# class Luhn extends Constraint\n# {\n# public const INVALID_CHARACTERS_ERROR\
\ = 'dfad6d23-1b74-4374-929b-5cbb56fc0d9e';\n# public const CHECKSUM_FAILED_ERROR\
\ = '4d760774-3f50-4cd5-a6d5-b10a3299d8d3';\n# \n# protected const ERROR_NAMES\
\ = [\n# self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',\n# self::CHECKSUM_FAILED_ERROR\
\ => 'CHECKSUM_FAILED_ERROR',\n# ];\n# \n# public string $message = 'Invalid card\
\ number.';\n# \n# /**\n# * @param array<string,mixed>|null $options\n# * @param\
\ string[]|null $groups"
traits:
- Symfony\Component\Validator\Constraint
interfaces: []