@@ -26,88 +26,114 @@ interface ValidatorBuilderInterface
26
26
* Adds an object initializer to the validator.
27
27
*
28
28
* @param ObjectInitializerInterface $initializer The initializer.
29
+ *
30
+ * @return ValidatorBuilderInterface The builder object.
29
31
*/
30
32
public function addObjectInitializer (ObjectInitializerInterface $ initializer );
31
33
32
34
/**
33
35
* Adds a list of object initializers to the validator.
34
36
*
35
37
* @param array $initializers The initializer.
38
+ *
39
+ * @return ValidatorBuilderInterface The builder object.
36
40
*/
37
41
public function addObjectInitializers (array $ initializers );
38
42
39
43
/**
40
44
* Adds an XML constraint mapping file to the validator.
41
45
*
42
46
* @param string $path The path to the mapping file.
47
+ *
48
+ * @return ValidatorBuilderInterface The builder object.
43
49
*/
44
50
public function addXmlMapping ($ path );
45
51
46
52
/**
47
53
* Adds a list of XML constraint mapping files to the validator.
48
54
*
49
55
* @param array $paths The paths to the mapping files.
56
+ *
57
+ * @return ValidatorBuilderInterface The builder object.
50
58
*/
51
59
public function addXmlMappings (array $ paths );
52
60
53
61
/**
54
62
* Adds a YAML constraint mapping file to the validator.
55
63
*
56
64
* @param string $path The path to the mapping file.
65
+ *
66
+ * @return ValidatorBuilderInterface The builder object.
57
67
*/
58
68
public function addYamlMapping ($ path );
59
69
60
70
/**
61
71
* Adds a list of YAML constraint mappings file to the validator.
62
72
*
63
73
* @param array $paths The paths to the mapping files.
74
+ *
75
+ * @return ValidatorBuilderInterface The builder object.
64
76
*/
65
77
public function addYamlMappings (array $ paths );
66
78
67
79
/**
68
80
* Enables constraint mapping using the given static method.
69
81
*
70
82
* @param string $methodName The name of the method.
83
+ *
84
+ * @return ValidatorBuilderInterface The builder object.
71
85
*/
72
86
public function addMethodMapping ($ methodName );
73
87
74
88
/**
75
89
* Enables constraint mapping using the given static methods.
76
90
*
77
91
* @param array $methodNames The names of the methods.
92
+ *
93
+ * @return ValidatorBuilderInterface The builder object.
78
94
*/
79
95
public function addMethodMappings (array $ methodNames );
80
96
81
97
/**
82
98
* Enables annotation based constraint mapping.
83
99
*
84
100
* @param Reader $annotationReader The annotation reader to be used.
101
+ *
102
+ * @return ValidatorBuilderInterface The builder object.
85
103
*/
86
104
public function enableAnnotationMapping (Reader $ annotationReader = null );
87
105
88
106
/**
89
107
* Disables annotation based constraint mapping.
108
+ *
109
+ * @return ValidatorBuilderInterface The builder object.
90
110
*/
91
111
public function disableAnnotationMapping ();
92
112
93
113
/**
94
114
* Sets the class metadata factory used by the validator.
95
115
*
96
116
* @param ClassMetadataFactoryInterface $metadataFactory The metadata factory.
117
+ *
118
+ * @return ValidatorBuilderInterface The builder object.
97
119
*/
98
120
public function setMetadataFactory (ClassMetadataFactoryInterface $ metadataFactory );
99
121
100
122
/**
101
123
* Sets the cache for caching class metadata.
102
124
*
103
125
* @param CacheInterface $cache The cache instance.
126
+ *
127
+ * @return ValidatorBuilderInterface The builder object.
104
128
*/
105
129
public function setMetadataCache (CacheInterface $ cache );
106
130
107
131
/**
108
132
* Sets the constraint validator factory used by the validator.
109
133
*
110
134
* @param ConstraintValidatorFactoryInterface $validatorFactory The validator factory.
135
+ *
136
+ * @return ValidatorBuilderInterface The builder object.
111
137
*/
112
138
public function setConstraintValidatorFactory (ConstraintValidatorFactoryInterface $ validatorFactory );
113
139
0 commit comments