vendor/symfony/form/Extension/Validator/Constraints/Form.php line 19

Open in your IDE?
  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\Form\Extension\Validator\Constraints;
  11. use Symfony\Component\Validator\Constraint;
  12. /**
  13.  * @author Bernhard Schussek <bschussek@gmail.com>
  14.  */
  15. class Form extends Constraint
  16. {
  17.     public const NOT_SYNCHRONIZED_ERROR '1dafa156-89e1-4736-b832-419c2e501fca';
  18.     public const NO_SUCH_FIELD_ERROR '6e5212ed-a197-4339-99aa-5654798a4854';
  19.     protected const ERROR_NAMES = [
  20.         self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',
  21.         self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',
  22.     ];
  23.     /**
  24.      * @deprecated since Symfony 6.1, use const ERROR_NAMES instead
  25.      */
  26.     protected static $errorNames self::ERROR_NAMES;
  27.     /**
  28.      * {@inheritdoc}
  29.      */
  30.     public function getTargets(): string|array
  31.     {
  32.         return self::CLASS_CONSTRAINT;
  33.     }
  34. }