@@ -65,10 +65,6 @@ public function __construct()
6565 /**
6666 * Add an additional filter
6767 *
68- * @param FilterInterface ...$additionalFilter
69- *
70- * @return $this
71- *
7268 * @throws Exception
7369 * @throws InvalidFilterException
7470 */
@@ -103,11 +99,6 @@ public function addFilter(FilterInterface ...$additionalFilter): self
10399
104100 /**
105101 * Add an additional format
106- *
107- * @param string $formatKey
108- * @param FormatValidatorInterface $format
109- *
110- * @return $this
111102 */
112103 public function addFormat (string $ formatKey , FormatValidatorInterface $ format ): self
113104 {
@@ -116,20 +107,12 @@ public function addFormat(string $formatKey, FormatValidatorInterface $format):
116107 return $ this ;
117108 }
118109
119- /**
120- * @param string $formatKey
121- *
122- * @return FormatValidatorInterface|null
123- */
124110 public function getFormat (string $ formatKey ): ?FormatValidatorInterface
125111 {
126112 return $ this ->formats [$ formatKey ] ?? null ;
127113 }
128114
129115 /**
130- * @param array $callback
131- * @param string $message
132- *
133116 * @throws InvalidFilterException
134117 */
135118 private function validateFilterCallback (array $ callback , string $ message ): void
@@ -145,209 +128,125 @@ private function validateFilterCallback(array $callback, string $message): void
145128
146129 /**
147130 * Get a filter by the given token
148- *
149- * @param string $token
150- *
151- * @return FilterInterface|null
152131 */
153132 public function getFilter (string $ token ): ?FilterInterface
154133 {
155134 return $ this ->filter [$ token ] ?? null ;
156135 }
157136
158- /**
159- * @return ClassNameGeneratorInterface
160- */
161137 public function getClassNameGenerator (): ClassNameGeneratorInterface
162138 {
163139 return $ this ->classNameGenerator ;
164140 }
165141
166- /**
167- * @param ClassNameGeneratorInterface $classNameGenerator
168- *
169- * @return $this
170- */
171142 public function setClassNameGenerator (ClassNameGeneratorInterface $ classNameGenerator ): self
172143 {
173144 $ this ->classNameGenerator = $ classNameGenerator ;
174145
175146 return $ this ;
176147 }
177148
178- /**
179- * @return string
180- */
181149 public function getNamespacePrefix (): string
182150 {
183151 return $ this ->namespacePrefix ;
184152 }
185153
186- /**
187- * @param string $namespacePrefix
188- *
189- * @return $this
190- */
191154 public function setNamespacePrefix (string $ namespacePrefix ): self
192155 {
193156 $ this ->namespacePrefix = trim ($ namespacePrefix , '\\' );
194157
195158 return $ this ;
196159 }
197160
198- /**
199- * @return bool
200- */
201161 public function isDefaultArraysToEmptyArrayEnabled (): bool
202162 {
203163 return $ this ->defaultArraysToEmptyArray ;
204164 }
205165
206- /**
207- * @param bool $defaultArraysToEmptyArray
208- *
209- * @return GeneratorConfiguration
210- */
211166 public function setDefaultArraysToEmptyArray (bool $ defaultArraysToEmptyArray ): self
212167 {
213168 $ this ->defaultArraysToEmptyArray = $ defaultArraysToEmptyArray ;
214169
215170 return $ this ;
216171 }
217172
218- /**
219- * @return bool
220- */
221173 public function isImmutable (): bool
222174 {
223175 return $ this ->immutable ;
224176 }
225177
226- /**
227- * @param bool $immutable
228- *
229- * @return GeneratorConfiguration
230- */
231178 public function setImmutable (bool $ immutable ): self
232179 {
233180 $ this ->immutable = $ immutable ;
234181
235182 return $ this ;
236183 }
237184
238- /**
239- * @return bool
240- */
241185 public function denyAdditionalProperties (): bool
242186 {
243187 return $ this ->denyAdditionalProperties ;
244188 }
245189
246- /**
247- * @param bool $denyAdditionalProperties
248- *
249- * @return $this
250- */
251190 public function setDenyAdditionalProperties (bool $ denyAdditionalProperties ): self
252191 {
253192 $ this ->denyAdditionalProperties = $ denyAdditionalProperties ;
254193
255194 return $ this ;
256195 }
257196
258- /**
259- * @return bool
260- */
261197 public function hasSerializationEnabled (): bool
262198 {
263199 return $ this ->serialization ;
264200 }
265201
266- /**
267- * @param bool $serialization
268- *
269- * @return $this
270- */
271202 public function setSerialization (bool $ serialization ): self
272203 {
273204 $ this ->serialization = $ serialization ;
274205
275206 return $ this ;
276207 }
277208
278- /**
279- * @param bool $outputEnabled
280- *
281- * @return $this
282- */
283209 public function setOutputEnabled (bool $ outputEnabled ): self
284210 {
285211 $ this ->outputEnabled = $ outputEnabled ;
286212
287213 return $ this ;
288214 }
289215
290- /**
291- * @return bool
292- */
293216 public function isOutputEnabled (): bool
294217 {
295218 return $ this ->outputEnabled ;
296219 }
297220
298- /**
299- * @return bool
300- */
301221 public function collectErrors (): bool
302222 {
303223 return $ this ->collectErrors ;
304224 }
305225
306- /**
307- * @param bool $collectErrors
308- *
309- * @return GeneratorConfiguration
310- */
311226 public function setCollectErrors (bool $ collectErrors ): self
312227 {
313228 $ this ->collectErrors = $ collectErrors ;
314229
315230 return $ this ;
316231 }
317232
318- /**
319- * @return string
320- */
321233 public function getErrorRegistryClass (): string
322234 {
323235 return $ this ->errorRegistryClass ;
324236 }
325237
326- /**
327- * @param string $errorRegistryClass
328- *
329- * @return GeneratorConfiguration
330- */
331238 public function setErrorRegistryClass (string $ errorRegistryClass ): self
332239 {
333240 $ this ->errorRegistryClass = $ errorRegistryClass ;
334241
335242 return $ this ;
336243 }
337244
338- /**
339- * @return bool
340- */
341245 public function isImplicitNullAllowed (): bool
342246 {
343247 return $ this ->allowImplicitNull ;
344248 }
345249
346- /**
347- * @param bool $allowImplicitNull
348- *
349- * @return GeneratorConfiguration
350- */
351250 public function setImplicitNull (bool $ allowImplicitNull ): self
352251 {
353252 $ this ->allowImplicitNull = $ allowImplicitNull ;
0 commit comments