Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/Bic.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /* | |
4 * This file is part of the Symfony package. | |
5 * | |
6 * (c) Fabien Potencier <fabien@symfony.com> | |
7 * | |
8 * For the full copyright and license information, please view the LICENSE | |
9 * file that was distributed with this source code. | |
10 */ | |
11 | |
12 namespace Symfony\Component\Validator\Constraints; | |
13 | |
14 use Symfony\Component\Validator\Constraint; | |
15 | |
16 /** | |
17 * @Annotation | |
18 * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) | |
19 * | |
20 * @author Michael Hirschler <michael.vhirsch@gmail.com> | |
21 */ | |
22 class Bic extends Constraint | |
23 { | |
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'; | |
29 | |
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', | |
36 ); | |
37 | |
38 public $message = 'This is not a valid Business Identifier Code (BIC).'; | |
39 } |