annotate vendor/symfony/validator/Constraints/Bic.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /*
Chris@0 4 * This file is part of the Symfony package.
Chris@0 5 *
Chris@0 6 * (c) Fabien Potencier <fabien@symfony.com>
Chris@0 7 *
Chris@0 8 * For the full copyright and license information, please view the LICENSE
Chris@0 9 * file that was distributed with this source code.
Chris@0 10 */
Chris@0 11
Chris@0 12 namespace Symfony\Component\Validator\Constraints;
Chris@0 13
Chris@0 14 use Symfony\Component\Validator\Constraint;
Chris@0 15
Chris@0 16 /**
Chris@0 17 * @Annotation
Chris@0 18 * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
Chris@0 19 *
Chris@0 20 * @author Michael Hirschler <michael.vhirsch@gmail.com>
Chris@0 21 */
Chris@0 22 class Bic extends Constraint
Chris@0 23 {
Chris@0 24 const INVALID_LENGTH_ERROR = '66dad313-af0b-4214-8566-6c799be9789c';
Chris@0 25 const INVALID_CHARACTERS_ERROR = 'f424c529-7add-4417-8f2d-4b656e4833e2';
Chris@0 26 const INVALID_BANK_CODE_ERROR = '00559357-6170-4f29-aebd-d19330aa19cf';
Chris@0 27 const INVALID_COUNTRY_CODE_ERROR = '1ce76f8d-3c1f-451c-9e62-fe9c3ed486ae';
Chris@0 28 const INVALID_CASE_ERROR = '11884038-3312-4ae5-9d04-699f782130c7';
Chris@0 29
Chris@17 30 protected static $errorNames = [
Chris@0 31 self::INVALID_LENGTH_ERROR => 'INVALID_LENGTH_ERROR',
Chris@0 32 self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',
Chris@0 33 self::INVALID_BANK_CODE_ERROR => 'INVALID_BANK_CODE_ERROR',
Chris@0 34 self::INVALID_COUNTRY_CODE_ERROR => 'INVALID_COUNTRY_CODE_ERROR',
Chris@0 35 self::INVALID_CASE_ERROR => 'INVALID_CASE_ERROR',
Chris@17 36 ];
Chris@0 37
Chris@0 38 public $message = 'This is not a valid Business Identifier Code (BIC).';
Chris@0 39 }