Luhn.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Constraints/Luhn.php
View source
<?php
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
class Luhn extends Constraint {
const INVALID_CHARACTERS_ERROR = 1;
const CHECKSUM_FAILED_ERROR = 2;
protected static $errorNames = array(
self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',
self::CHECKSUM_FAILED_ERROR => 'CHECKSUM_FAILED_ERROR',
);
public $message = 'Invalid card number.';
}
Classes
Name |
Description |
Luhn |
Metadata for the LuhnValidator. |