Skip to content

Commit a8c7c81

Browse files
Add missing @return $this annotations
1 parent efcad91 commit a8c7c81

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Test/ConstraintValidatorTestCase.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,55 +326,79 @@ public function __construct(ExecutionContextInterface $context, string $message,
326326
$this->assertions = $assertions;
327327
}
328328

329+
/**
330+
* @return $this
331+
*/
329332
public function atPath(string $path)
330333
{
331334
$this->propertyPath = $path;
332335

333336
return $this;
334337
}
335338

339+
/**
340+
* @return $this
341+
*/
336342
public function setParameter(string $key, string $value)
337343
{
338344
$this->parameters[$key] = $value;
339345

340346
return $this;
341347
}
342348

349+
/**
350+
* @return $this
351+
*/
343352
public function setParameters(array $parameters)
344353
{
345354
$this->parameters = $parameters;
346355

347356
return $this;
348357
}
349358

359+
/**
360+
* @return $this
361+
*/
350362
public function setTranslationDomain($translationDomain)
351363
{
352364
// no-op for BC
353365

354366
return $this;
355367
}
356368

369+
/**
370+
* @return $this
371+
*/
357372
public function setInvalidValue($invalidValue)
358373
{
359374
$this->invalidValue = $invalidValue;
360375

361376
return $this;
362377
}
363378

379+
/**
380+
* @return $this
381+
*/
364382
public function setPlural(int $number)
365383
{
366384
$this->plural = $number;
367385

368386
return $this;
369387
}
370388

389+
/**
390+
* @return $this
391+
*/
371392
public function setCode(string $code)
372393
{
373394
$this->code = $code;
374395

375396
return $this;
376397
}
377398

399+
/**
400+
* @return $this
401+
*/
378402
public function setCause($cause)
379403
{
380404
$this->cause = $cause;
@@ -448,6 +472,9 @@ public function atPath(string $path)
448472
{
449473
}
450474

475+
/**
476+
* @return $this
477+
*/
451478
public function doAtPath(string $path)
452479
{
453480
Assert::assertFalse($this->expectNoValidate, 'No validation calls have been expected.');
@@ -465,6 +492,9 @@ public function validate($value, $constraints = null, $groups = null)
465492
{
466493
}
467494

495+
/**
496+
* @return $this
497+
*/
468498
public function doValidate($value, $constraints = null, $groups = null)
469499
{
470500
Assert::assertFalse($this->expectNoValidate, 'No validation calls have been expected.');
@@ -490,6 +520,9 @@ public function validateProperty(object $object, string $propertyName, $groups =
490520
{
491521
}
492522

523+
/**
524+
* @return $this
525+
*/
493526
public function doValidateProperty(object $object, string $propertyName, $groups = null)
494527
{
495528
return $this;
@@ -499,6 +532,9 @@ public function validatePropertyValue($objectOrClass, string $propertyName, $val
499532
{
500533
}
501534

535+
/**
536+
* @return $this
537+
*/
502538
public function doValidatePropertyValue($objectOrClass, string $propertyName, $value, $groups = null)
503539
{
504540
return $this;

0 commit comments

Comments
 (0)