Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Validator/ValidatorInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
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 use Symfony\Component\Validator\Context\ExecutionContextInterface; | 17 use Symfony\Component\Validator\Context\ExecutionContextInterface; |
17 use Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface; | 18 use Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface; |
18 | 19 |
19 /** | 20 /** |
27 * Validates a value against a constraint or a list of constraints. | 28 * Validates a value against a constraint or a list of constraints. |
28 * | 29 * |
29 * If no constraint is passed, the constraint | 30 * If no constraint is passed, the constraint |
30 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. | 31 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. |
31 * | 32 * |
32 * @param mixed $value The value to validate | 33 * @param mixed $value The value to validate |
33 * @param Constraint|Constraint[] $constraints The constraint(s) to validate | 34 * @param Constraint|Constraint[] $constraints The constraint(s) to validate against |
34 * against | 35 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
35 * @param array|null $groups The validation groups to | |
36 * validate. If none is given, | |
37 * "Default" is assumed | |
38 * | 36 * |
39 * @return ConstraintViolationListInterface A list of constraint violations | 37 * @return ConstraintViolationListInterface A list of constraint violations |
40 * If the list is empty, validation | 38 * If the list is empty, validation |
41 * succeeded | 39 * succeeded |
42 */ | 40 */ |
44 | 42 |
45 /** | 43 /** |
46 * Validates a property of an object against the constraints specified | 44 * Validates a property of an object against the constraints specified |
47 * for this property. | 45 * for this property. |
48 * | 46 * |
49 * @param object $object The object | 47 * @param object $object The object |
50 * @param string $propertyName The name of the validated property | 48 * @param string $propertyName The name of the validated property |
51 * @param array|null $groups The validation groups to validate. If | 49 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
52 * none is given, "Default" is assumed | |
53 * | 50 * |
54 * @return ConstraintViolationListInterface A list of constraint violations | 51 * @return ConstraintViolationListInterface A list of constraint violations |
55 * If the list is empty, validation | 52 * If the list is empty, validation |
56 * succeeded | 53 * succeeded |
57 */ | 54 */ |
59 | 56 |
60 /** | 57 /** |
61 * Validates a value against the constraints specified for an object's | 58 * Validates a value against the constraints specified for an object's |
62 * property. | 59 * property. |
63 * | 60 * |
64 * @param object|string $objectOrClass The object or its class name | 61 * @param object|string $objectOrClass The object or its class name |
65 * @param string $propertyName The name of the property | 62 * @param string $propertyName The name of the property |
66 * @param mixed $value The value to validate against the | 63 * @param mixed $value The value to validate against the property's constraints |
67 * property's constraints | 64 * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed |
68 * @param array|null $groups The validation groups to validate. If | |
69 * none is given, "Default" is assumed | |
70 * | 65 * |
71 * @return ConstraintViolationListInterface A list of constraint violations | 66 * @return ConstraintViolationListInterface A list of constraint violations |
72 * If the list is empty, validation | 67 * If the list is empty, validation |
73 * succeeded | 68 * succeeded |
74 */ | 69 */ |