Date.php 867 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Validator\Constraints;
  11. use Symfony\Component\Validator\Constraint;
  12. /**
  13. * @Annotation
  14. * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
  15. *
  16. * @author Bernhard Schussek <bschussek@gmail.com>
  17. */
  18. class Date extends Constraint
  19. {
  20. const INVALID_FORMAT_ERROR = '69819696-02ac-4a99-9ff0-14e127c4d1bc';
  21. const INVALID_DATE_ERROR = '3c184ce5-b31d-4de7-8b76-326da7b2be93';
  22. protected static $errorNames = array(
  23. self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
  24. self::INVALID_DATE_ERROR => 'INVALID_DATE_ERROR',
  25. );
  26. public $message = 'This value is not a valid date.';
  27. }