Date.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Constraints/Date.php
View source
<?php
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
class Date extends Constraint {
const INVALID_FORMAT_ERROR = 1;
const INVALID_DATE_ERROR = 2;
protected static $errorNames = array(
self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
self::INVALID_DATE_ERROR => 'INVALID_DATE_ERROR',
);
public $message = 'This value is not a valid date.';
}
Classes
Name |
Description |
Date |
@Target({"PROPERTY", "METHOD", "ANNOTATION"}) |