@@ -326,55 +326,79 @@ public function __construct(ExecutionContextInterface $context, string $message,
326
326
$ this ->assertions = $ assertions ;
327
327
}
328
328
329
+ /**
330
+ * @return $this
331
+ */
329
332
public function atPath (string $ path )
330
333
{
331
334
$ this ->propertyPath = $ path ;
332
335
333
336
return $ this ;
334
337
}
335
338
339
+ /**
340
+ * @return $this
341
+ */
336
342
public function setParameter (string $ key , string $ value )
337
343
{
338
344
$ this ->parameters [$ key ] = $ value ;
339
345
340
346
return $ this ;
341
347
}
342
348
349
+ /**
350
+ * @return $this
351
+ */
343
352
public function setParameters (array $ parameters )
344
353
{
345
354
$ this ->parameters = $ parameters ;
346
355
347
356
return $ this ;
348
357
}
349
358
359
+ /**
360
+ * @return $this
361
+ */
350
362
public function setTranslationDomain ($ translationDomain )
351
363
{
352
364
// no-op for BC
353
365
354
366
return $ this ;
355
367
}
356
368
369
+ /**
370
+ * @return $this
371
+ */
357
372
public function setInvalidValue ($ invalidValue )
358
373
{
359
374
$ this ->invalidValue = $ invalidValue ;
360
375
361
376
return $ this ;
362
377
}
363
378
379
+ /**
380
+ * @return $this
381
+ */
364
382
public function setPlural (int $ number )
365
383
{
366
384
$ this ->plural = $ number ;
367
385
368
386
return $ this ;
369
387
}
370
388
389
+ /**
390
+ * @return $this
391
+ */
371
392
public function setCode (string $ code )
372
393
{
373
394
$ this ->code = $ code ;
374
395
375
396
return $ this ;
376
397
}
377
398
399
+ /**
400
+ * @return $this
401
+ */
378
402
public function setCause ($ cause )
379
403
{
380
404
$ this ->cause = $ cause ;
@@ -448,6 +472,9 @@ public function atPath(string $path)
448
472
{
449
473
}
450
474
475
+ /**
476
+ * @return $this
477
+ */
451
478
public function doAtPath (string $ path )
452
479
{
453
480
Assert::assertFalse ($ this ->expectNoValidate , 'No validation calls have been expected. ' );
@@ -465,6 +492,9 @@ public function validate($value, $constraints = null, $groups = null)
465
492
{
466
493
}
467
494
495
+ /**
496
+ * @return $this
497
+ */
468
498
public function doValidate ($ value , $ constraints = null , $ groups = null )
469
499
{
470
500
Assert::assertFalse ($ this ->expectNoValidate , 'No validation calls have been expected. ' );
@@ -490,6 +520,9 @@ public function validateProperty(object $object, string $propertyName, $groups =
490
520
{
491
521
}
492
522
523
+ /**
524
+ * @return $this
525
+ */
493
526
public function doValidateProperty (object $ object , string $ propertyName , $ groups = null )
494
527
{
495
528
return $ this ;
@@ -499,6 +532,9 @@ public function validatePropertyValue($objectOrClass, string $propertyName, $val
499
532
{
500
533
}
501
534
535
+ /**
536
+ * @return $this
537
+ */
502
538
public function doValidatePropertyValue ($ objectOrClass , string $ propertyName , $ value , $ groups = null )
503
539
{
504
540
return $ this ;
0 commit comments