Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/validator/Validator/ContextualValidatorInterface.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 |
---|---|
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\Validator\Validator; | 12 namespace Symfony\Component\Validator\Validator; |
13 | 13 |
14 use Symfony\Component\Validator\Constraint; | 14 use Symfony\Component\Validator\Constraint; |
15 use Symfony\Component\Validator\Constraints\GroupSequence; | |
15 use Symfony\Component\Validator\ConstraintViolationListInterface; | 16 use Symfony\Component\Validator\ConstraintViolationListInterface; |
16 | 17 |
17 /** | 18 /** |
18 * A validator in a specific execution context. | 19 * A validator in a specific execution context. |
19 * | 20 * |
37 * Validates a value against a constraint or a list of constraints. | 38 * Validates a value against a constraint or a list of constraints. |
38 * | 39 * |
39 * If no constraint is passed, the constraint | 40 * If no constraint is passed, the constraint |
40 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. | 41 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. |
41 * | 42 * |
42 * @param mixed $value The value to validate | 43 * @param mixed $value The value to validate |
43 * @param Constraint|Constraint[] $constraints The constraint(s) to validate | 44 * @param Constraint|Constraint[] $constraints The constraint(s) to validate against |
44 * against | 45 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
45 * @param array|null $groups The validation groups to | |
46 * validate. If none is given, | |
47 * "Default" is assumed | |
48 * | 46 * |
49 * @return $this | 47 * @return $this |
50 */ | 48 */ |
51 public function validate($value, $constraints = null, $groups = null); | 49 public function validate($value, $constraints = null, $groups = null); |
52 | 50 |
53 /** | 51 /** |
54 * Validates a property of an object against the constraints specified | 52 * Validates a property of an object against the constraints specified |
55 * for this property. | 53 * for this property. |
56 * | 54 * |
57 * @param object $object The object | 55 * @param object $object The object |
58 * @param string $propertyName The name of the validated property | 56 * @param string $propertyName The name of the validated property |
59 * @param array|null $groups The validation groups to validate. If | 57 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
60 * none is given, "Default" is assumed | |
61 * | 58 * |
62 * @return $this | 59 * @return $this |
63 */ | 60 */ |
64 public function validateProperty($object, $propertyName, $groups = null); | 61 public function validateProperty($object, $propertyName, $groups = null); |
65 | 62 |
66 /** | 63 /** |
67 * Validates a value against the constraints specified for an object's | 64 * Validates a value against the constraints specified for an object's |
68 * property. | 65 * property. |
69 * | 66 * |
70 * @param object|string $objectOrClass The object or its class name | 67 * @param object|string $objectOrClass The object or its class name |
71 * @param string $propertyName The name of the property | 68 * @param string $propertyName The name of the property |
72 * @param mixed $value The value to validate against the | 69 * @param mixed $value The value to validate against the property's constraints |
73 * property's constraints | 70 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
74 * @param array|null $groups The validation groups to validate. If | |
75 * none is given, "Default" is assumed | |
76 * | 71 * |
77 * @return $this | 72 * @return $this |
78 */ | 73 */ |
79 public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null); | 74 public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null); |
80 | 75 |