Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/CardScheme.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
25 class CardScheme extends Constraint | 25 class CardScheme extends Constraint |
26 { | 26 { |
27 const NOT_NUMERIC_ERROR = 'a2ad9231-e827-485f-8a1e-ef4d9a6d5c2e'; | 27 const NOT_NUMERIC_ERROR = 'a2ad9231-e827-485f-8a1e-ef4d9a6d5c2e'; |
28 const INVALID_FORMAT_ERROR = 'a8faedbf-1c2f-4695-8d22-55783be8efed'; | 28 const INVALID_FORMAT_ERROR = 'a8faedbf-1c2f-4695-8d22-55783be8efed'; |
29 | 29 |
30 protected static $errorNames = array( | 30 protected static $errorNames = [ |
31 self::NOT_NUMERIC_ERROR => 'NOT_NUMERIC_ERROR', | 31 self::NOT_NUMERIC_ERROR => 'NOT_NUMERIC_ERROR', |
32 self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR', | 32 self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR', |
33 ); | 33 ]; |
34 | 34 |
35 public $message = 'Unsupported card type or invalid card number.'; | 35 public $message = 'Unsupported card type or invalid card number.'; |
36 public $schemes; | 36 public $schemes; |
37 | 37 |
38 public function getDefaultOption() | 38 public function getDefaultOption() |
40 return 'schemes'; | 40 return 'schemes'; |
41 } | 41 } |
42 | 42 |
43 public function getRequiredOptions() | 43 public function getRequiredOptions() |
44 { | 44 { |
45 return array('schemes'); | 45 return ['schemes']; |
46 } | 46 } |
47 } | 47 } |