@@ -16,14 +16,17 @@ class ExportedClassConstantNode implements ExportedNode, JsonSerializable
16
16
17
17
private bool $ private ;
18
18
19
+ private bool $ final ;
20
+
19
21
private ?ExportedPhpDocNode $ phpDoc ;
20
22
21
- public function __construct (string $ name , string $ value , bool $ public , bool $ private , ?ExportedPhpDocNode $ phpDoc )
23
+ public function __construct (string $ name , string $ value , bool $ public , bool $ private , bool $ final , ?ExportedPhpDocNode $ phpDoc )
22
24
{
23
25
$ this ->name = $ name ;
24
26
$ this ->value = $ value ;
25
27
$ this ->public = $ public ;
26
28
$ this ->private = $ private ;
29
+ $ this ->final = $ final ;
27
30
$ this ->phpDoc = $ phpDoc ;
28
31
}
29
32
@@ -48,7 +51,8 @@ public function equals(ExportedNode $node): bool
48
51
return $ this ->name === $ node ->name
49
52
&& $ this ->value === $ node ->value
50
53
&& $ this ->public === $ node ->public
51
- && $ this ->private === $ node ->private ;
54
+ && $ this ->private === $ node ->private
55
+ && $ this ->final === $ node ->final ;
52
56
}
53
57
54
58
/**
@@ -62,6 +66,7 @@ public static function __set_state(array $properties): ExportedNode
62
66
$ properties ['value ' ],
63
67
$ properties ['public ' ],
64
68
$ properties ['private ' ],
69
+ $ properties ['final ' ],
65
70
$ properties ['phpDoc ' ]
66
71
);
67
72
}
@@ -77,6 +82,7 @@ public static function decode(array $data): ExportedNode
77
82
$ data ['value ' ],
78
83
$ data ['public ' ],
79
84
$ data ['private ' ],
85
+ $ data ['final ' ],
80
86
$ data ['phpDoc ' ],
81
87
);
82
88
}
@@ -93,6 +99,7 @@ public function jsonSerialize()
93
99
'value ' => $ this ->value ,
94
100
'public ' => $ this ->public ,
95
101
'private ' => $ this ->private ,
102
+ 'final ' => $ this ->final ,
96
103
'phpDoc ' => $ this ->phpDoc ,
97
104
],
98
105
];
0 commit comments