Updating Media dependent modules to versions compatible with core Media.
[yaffs-website] / vendor / symfony / validator / Constraints / DateTime.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator\Constraints;
13
14 use Symfony\Component\Validator\Constraint;
15
16 /**
17  * @Annotation
18  * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
19  *
20  * @author Bernhard Schussek <bschussek@gmail.com>
21  */
22 class DateTime extends Constraint
23 {
24     const INVALID_FORMAT_ERROR = '1a9da513-2640-4f84-9b6a-4d99dcddc628';
25     const INVALID_DATE_ERROR = 'd52afa47-620d-4d99-9f08-f4d85b36e33c';
26     const INVALID_TIME_ERROR = '5e797c9d-74f7-4098-baa3-94390c447b27';
27
28     protected static $errorNames = array(
29         self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
30         self::INVALID_DATE_ERROR => 'INVALID_DATE_ERROR',
31         self::INVALID_TIME_ERROR => 'INVALID_TIME_ERROR',
32     );
33
34     public $format = 'Y-m-d H:i:s';
35     public $message = 'This value is not a valid datetime.';
36 }