18
18
*/
19
19
class ConstraintViolation implements ConstraintViolationInterface
20
20
{
21
- private string |\Stringable $ message ;
22
- private ?string $ messageTemplate ;
23
- private array $ parameters ;
24
- private ?int $ plural ;
25
- private mixed $ root ;
26
- private ?string $ propertyPath ;
27
- private mixed $ invalidValue ;
28
- private ?Constraint $ constraint ;
29
- private ?string $ code ;
30
- private mixed $ cause ;
31
-
32
21
/**
33
22
* Creates a new constraint violation.
34
23
*
@@ -49,18 +38,18 @@ class ConstraintViolation implements ConstraintViolationInterface
49
38
* caused the violation
50
39
* @param mixed $cause The cause of the violation
51
40
*/
52
- public function __construct (string | \ Stringable $ message , ? string $ messageTemplate , array $ parameters , mixed $ root , ? string $ propertyPath , mixed $ invalidValue , ? int $ plural = null , ? string $ code = null , ? Constraint $ constraint = null , mixed $ cause = null )
53
- {
54
- $ this -> message = $ message ;
55
- $ this -> messageTemplate = $ messageTemplate ;
56
- $ this -> parameters = $ parameters ;
57
- $ this -> plural = $ plural ;
58
- $ this -> root = $ root ;
59
- $ this -> propertyPath = $ propertyPath ;
60
- $ this -> invalidValue = $ invalidValue ;
61
- $ this -> constraint = $ constraint ;
62
- $ this -> code = $ code ;
63
- $ this -> cause = $ cause ;
41
+ public function __construct (
42
+ private string | \ Stringable $ message ,
43
+ private ? string $ messageTemplate ,
44
+ private array $ parameters ,
45
+ private mixed $ root ,
46
+ private ? string $ propertyPath ,
47
+ private mixed $ invalidValue ,
48
+ private ? int $ plural = null ,
49
+ private ? string $ code = null ,
50
+ private ? Constraint $ constraint = null ,
51
+ private mixed $ cause = null ,
52
+ ) {
64
53
}
65
54
66
55
public function __toString (): string
0 commit comments