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 static $errorNames = [
  20.         self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',
  21.         self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',
  22.     ];
  23.     /**
  24.      * {@inheritdoc}
  25.      */
  26.     public function getTargets()
  27.     {
  28.         return self::CLASS_CONSTRAINT;
  29.     }
  30. }