Date.php in Zircon Profile 8.0
Same filename in this branch
- 8.0 vendor/symfony/validator/Constraints/Date.php
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php
- 8.0 core/lib/Drupal/Core/Render/Element/Date.php
- 8.0 core/modules/views/src/Plugin/views/filter/Date.php
- 8.0 core/modules/views/src/Plugin/views/sort/Date.php
- 8.0 core/modules/views/src/Plugin/views/argument/Date.php
- 8.0 core/modules/views/src/Plugin/views/field/Date.php
- 8.0 core/modules/datetime/src/Plugin/views/filter/Date.php
- 8.0 core/modules/datetime/src/Plugin/views/sort/Date.php
- 8.0 core/modules/datetime/src/Plugin/views/argument/Date.php
Same filename and directory in other branches
Namespace
Symfony\Component\Validator\ConstraintsFile
vendor/symfony/validator/Constraints/Date.phpView source
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
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.';
}