@@ -81,6 +81,8 @@ class ValidatorBuilder implements ValidatorBuilderInterface
81
81
public function addObjectInitializer (ObjectInitializerInterface $ initializer )
82
82
{
83
83
$ this ->initializers [] = $ initializer ;
84
+
85
+ return $ this ;
84
86
}
85
87
86
88
/**
@@ -89,6 +91,8 @@ public function addObjectInitializer(ObjectInitializerInterface $initializer)
89
91
public function addObjectInitializers (array $ initializers )
90
92
{
91
93
$ this ->initializers = array_merge ($ this ->initializers , $ initializers );
94
+
95
+ return $ this ;
92
96
}
93
97
94
98
/**
@@ -101,6 +105,8 @@ public function addXmlMapping($path)
101
105
}
102
106
103
107
$ this ->xmlMappings [] = $ path ;
108
+
109
+ return $ this ;
104
110
}
105
111
106
112
/**
@@ -113,6 +119,8 @@ public function addXmlMappings(array $paths)
113
119
}
114
120
115
121
$ this ->xmlMappings = array_merge ($ this ->xmlMappings , $ paths );
122
+
123
+ return $ this ;
116
124
}
117
125
118
126
/**
@@ -125,6 +133,8 @@ public function addYamlMapping($path)
125
133
}
126
134
127
135
$ this ->yamlMappings [] = $ path ;
136
+
137
+ return $ this ;
128
138
}
129
139
130
140
/**
@@ -137,6 +147,8 @@ public function addYamlMappings(array $paths)
137
147
}
138
148
139
149
$ this ->yamlMappings = array_merge ($ this ->yamlMappings , $ paths );
150
+
151
+ return $ this ;
140
152
}
141
153
142
154
/**
@@ -149,6 +161,8 @@ public function addMethodMapping($methodName)
149
161
}
150
162
151
163
$ this ->methodMappings [] = $ methodName ;
164
+
165
+ return $ this ;
152
166
}
153
167
154
168
/**
@@ -161,6 +175,8 @@ public function addMethodMappings(array $methodNames)
161
175
}
162
176
163
177
$ this ->methodMappings = array_merge ($ this ->methodMappings , $ methodNames );
178
+
179
+ return $ this ;
164
180
}
165
181
166
182
/**
@@ -181,6 +197,8 @@ public function enableAnnotationMapping(Reader $annotationReader = null)
181
197
}
182
198
183
199
$ this ->annotationReader = $ annotationReader ;
200
+
201
+ return $ this ;
184
202
}
185
203
186
204
/**
@@ -189,6 +207,8 @@ public function enableAnnotationMapping(Reader $annotationReader = null)
189
207
public function disableAnnotationMapping ()
190
208
{
191
209
$ this ->annotationReader = null ;
210
+
211
+ return $ this ;
192
212
}
193
213
194
214
/**
@@ -201,6 +221,8 @@ public function setMetadataFactory(ClassMetadataFactoryInterface $metadataFactor
201
221
}
202
222
203
223
$ this ->metadataFactory = $ metadataFactory ;
224
+
225
+ return $ this ;
204
226
}
205
227
206
228
/**
@@ -213,6 +235,8 @@ public function setMetadataCache(CacheInterface $cache)
213
235
}
214
236
215
237
$ this ->metadataCache = $ cache ;
238
+
239
+ return $ this ;
216
240
}
217
241
218
242
/**
@@ -221,6 +245,8 @@ public function setMetadataCache(CacheInterface $cache)
221
245
public function setConstraintValidatorFactory (ConstraintValidatorFactoryInterface $ validatorFactory )
222
246
{
223
247
$ this ->validatorFactory = $ validatorFactory ;
248
+
249
+ return $ this ;
224
250
}
225
251
226
252
/**
0 commit comments