4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Constraints;
14 use Symfony\Component\Validator\Constraint;
18 * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
20 * @author Michael Hirschler <michael.vhirsch@gmail.com>
22 class Bic extends Constraint
24 const INVALID_LENGTH_ERROR = '66dad313-af0b-4214-8566-6c799be9789c';
25 const INVALID_CHARACTERS_ERROR = 'f424c529-7add-4417-8f2d-4b656e4833e2';
26 const INVALID_BANK_CODE_ERROR = '00559357-6170-4f29-aebd-d19330aa19cf';
27 const INVALID_COUNTRY_CODE_ERROR = '1ce76f8d-3c1f-451c-9e62-fe9c3ed486ae';
28 const INVALID_CASE_ERROR = '11884038-3312-4ae5-9d04-699f782130c7';
30 protected static $errorNames = array(
31 self::INVALID_LENGTH_ERROR => 'INVALID_LENGTH_ERROR',
32 self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',
33 self::INVALID_BANK_CODE_ERROR => 'INVALID_BANK_CODE_ERROR',
34 self::INVALID_COUNTRY_CODE_ERROR => 'INVALID_COUNTRY_CODE_ERROR',
35 self::INVALID_CASE_ERROR => 'INVALID_CASE_ERROR',
38 public $message = 'This is not a valid Business Identifier Code (BIC).';