CardScheme.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Constraints/CardScheme.php
View source
<?php
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
class CardScheme extends Constraint {
const NOT_NUMERIC_ERROR = 1;
const INVALID_FORMAT_ERROR = 2;
protected static $errorNames = array(
self::NOT_NUMERIC_ERROR => 'NOT_NUMERIC_ERROR',
self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
);
public $message = 'Unsupported card type or invalid card number.';
public $schemes;
public function getDefaultOption() {
return 'schemes';
}
public function getRequiredOptions() {
return array(
'schemes',
);
}
}