Drupal investigation

Bic.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Michael Hirschler <michael.vhirsch@gmail.com>
  17. */
  18. class Bic extends Constraint
  19. {
  20. const INVALID_LENGTH_ERROR = '66dad313-af0b-4214-8566-6c799be9789c';
  21. const INVALID_CHARACTERS_ERROR = 'f424c529-7add-4417-8f2d-4b656e4833e2';
  22. const INVALID_BANK_CODE_ERROR = '00559357-6170-4f29-aebd-d19330aa19cf';
  23. const INVALID_COUNTRY_CODE_ERROR = '1ce76f8d-3c1f-451c-9e62-fe9c3ed486ae';
  24. const INVALID_CASE_ERROR = '11884038-3312-4ae5-9d04-699f782130c7';
  25. protected static $errorNames = array(
  26. self::INVALID_LENGTH_ERROR => 'INVALID_LENGTH_ERROR',
  27. self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',
  28. self::INVALID_BANK_CODE_ERROR => 'INVALID_BANK_CODE_ERROR',
  29. self::INVALID_COUNTRY_CODE_ERROR => 'INVALID_COUNTRY_CODE_ERROR',
  30. self::INVALID_CASE_ERROR => 'INVALID_CASE_ERROR',
  31. );
  32. public $message = 'This is not a valid Business Identifier Code (BIC).';
  33. }