Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/validator/Constraints/Expression.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
22 */ | 22 */ |
23 class Expression extends Constraint | 23 class Expression extends Constraint |
24 { | 24 { |
25 const EXPRESSION_FAILED_ERROR = '6b3befbc-2f01-4ddf-be21-b57898905284'; | 25 const EXPRESSION_FAILED_ERROR = '6b3befbc-2f01-4ddf-be21-b57898905284'; |
26 | 26 |
27 protected static $errorNames = array( | 27 protected static $errorNames = [ |
28 self::EXPRESSION_FAILED_ERROR => 'EXPRESSION_FAILED_ERROR', | 28 self::EXPRESSION_FAILED_ERROR => 'EXPRESSION_FAILED_ERROR', |
29 ); | 29 ]; |
30 | 30 |
31 public $message = 'This value is not valid.'; | 31 public $message = 'This value is not valid.'; |
32 public $expression; | 32 public $expression; |
33 | 33 |
34 /** | 34 /** |
42 /** | 42 /** |
43 * {@inheritdoc} | 43 * {@inheritdoc} |
44 */ | 44 */ |
45 public function getRequiredOptions() | 45 public function getRequiredOptions() |
46 { | 46 { |
47 return array('expression'); | 47 return ['expression']; |
48 } | 48 } |
49 | 49 |
50 /** | 50 /** |
51 * {@inheritdoc} | 51 * {@inheritdoc} |
52 */ | 52 */ |
53 public function getTargets() | 53 public function getTargets() |
54 { | 54 { |
55 return array(self::CLASS_CONSTRAINT, self::PROPERTY_CONSTRAINT); | 55 return [self::CLASS_CONSTRAINT, self::PROPERTY_CONSTRAINT]; |
56 } | 56 } |
57 | 57 |
58 /** | 58 /** |
59 * {@inheritdoc} | 59 * {@inheritdoc} |
60 */ | 60 */ |