Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/ValidatorBuilderInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
25 interface ValidatorBuilderInterface | 25 interface ValidatorBuilderInterface |
26 { | 26 { |
27 /** | 27 /** |
28 * Adds an object initializer to the validator. | 28 * Adds an object initializer to the validator. |
29 * | 29 * |
30 * @param ObjectInitializerInterface $initializer The initializer | |
31 * | |
32 * @return $this | 30 * @return $this |
33 */ | 31 */ |
34 public function addObjectInitializer(ObjectInitializerInterface $initializer); | 32 public function addObjectInitializer(ObjectInitializerInterface $initializer); |
35 | 33 |
36 /** | 34 /** |
37 * Adds a list of object initializers to the validator. | 35 * Adds a list of object initializers to the validator. |
38 * | 36 * |
39 * @param array $initializers The initializer | 37 * @param ObjectInitializerInterface[] $initializers |
40 * | 38 * |
41 * @return $this | 39 * @return $this |
42 */ | 40 */ |
43 public function addObjectInitializers(array $initializers); | 41 public function addObjectInitializers(array $initializers); |
44 | 42 |
52 public function addXmlMapping($path); | 50 public function addXmlMapping($path); |
53 | 51 |
54 /** | 52 /** |
55 * Adds a list of XML constraint mapping files to the validator. | 53 * Adds a list of XML constraint mapping files to the validator. |
56 * | 54 * |
57 * @param array $paths The paths to the mapping files | 55 * @param string[] $paths The paths to the mapping files |
58 * | 56 * |
59 * @return $this | 57 * @return $this |
60 */ | 58 */ |
61 public function addXmlMappings(array $paths); | 59 public function addXmlMappings(array $paths); |
62 | 60 |
70 public function addYamlMapping($path); | 68 public function addYamlMapping($path); |
71 | 69 |
72 /** | 70 /** |
73 * Adds a list of YAML constraint mappings file to the validator. | 71 * Adds a list of YAML constraint mappings file to the validator. |
74 * | 72 * |
75 * @param array $paths The paths to the mapping files | 73 * @param string[] $paths The paths to the mapping files |
76 * | 74 * |
77 * @return $this | 75 * @return $this |
78 */ | 76 */ |
79 public function addYamlMappings(array $paths); | 77 public function addYamlMappings(array $paths); |
80 | 78 |
88 public function addMethodMapping($methodName); | 86 public function addMethodMapping($methodName); |
89 | 87 |
90 /** | 88 /** |
91 * Enables constraint mapping using the given static methods. | 89 * Enables constraint mapping using the given static methods. |
92 * | 90 * |
93 * @param array $methodNames The names of the methods | 91 * @param string[] $methodNames The names of the methods |
94 * | 92 * |
95 * @return $this | 93 * @return $this |
96 */ | 94 */ |
97 public function addMethodMappings(array $methodNames); | 95 public function addMethodMappings(array $methodNames); |
98 | 96 |
99 /** | 97 /** |
100 * Enables annotation based constraint mapping. | 98 * Enables annotation based constraint mapping. |
101 * | |
102 * @param Reader $annotationReader The annotation reader to be used | |
103 * | 99 * |
104 * @return $this | 100 * @return $this |
105 */ | 101 */ |
106 public function enableAnnotationMapping(Reader $annotationReader = null); | 102 public function enableAnnotationMapping(Reader $annotationReader = null); |
107 | 103 |
113 public function disableAnnotationMapping(); | 109 public function disableAnnotationMapping(); |
114 | 110 |
115 /** | 111 /** |
116 * Sets the class metadata factory used by the validator. | 112 * Sets the class metadata factory used by the validator. |
117 * | 113 * |
118 * @param MetadataFactoryInterface $metadataFactory The metadata factory | |
119 * | |
120 * @return $this | 114 * @return $this |
121 */ | 115 */ |
122 public function setMetadataFactory(MetadataFactoryInterface $metadataFactory); | 116 public function setMetadataFactory(MetadataFactoryInterface $metadataFactory); |
123 | 117 |
124 /** | 118 /** |
125 * Sets the cache for caching class metadata. | 119 * Sets the cache for caching class metadata. |
126 * | |
127 * @param CacheInterface $cache The cache instance | |
128 * | 120 * |
129 * @return $this | 121 * @return $this |
130 */ | 122 */ |
131 public function setMetadataCache(CacheInterface $cache); | 123 public function setMetadataCache(CacheInterface $cache); |
132 | 124 |
133 /** | 125 /** |
134 * Sets the constraint validator factory used by the validator. | 126 * Sets the constraint validator factory used by the validator. |
135 * | 127 * |
136 * @param ConstraintValidatorFactoryInterface $validatorFactory The validator factory | |
137 * | |
138 * @return $this | 128 * @return $this |
139 */ | 129 */ |
140 public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory); | 130 public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory); |
141 | 131 |
142 /** | 132 /** |
143 * Sets the translator used for translating violation messages. | 133 * Sets the translator used for translating violation messages. |
144 * | |
145 * @param TranslatorInterface $translator The translator instance | |
146 * | 134 * |
147 * @return $this | 135 * @return $this |
148 */ | 136 */ |
149 public function setTranslator(TranslatorInterface $translator); | 137 public function setTranslator(TranslatorInterface $translator); |
150 | 138 |