@@ -25,6 +25,11 @@ public function __construct(
25
25
private bool $ private ,
26
26
private bool $ static ,
27
27
private bool $ readonly ,
28
+ private bool $ abstract ,
29
+ private bool $ final ,
30
+ private bool $ publicSet ,
31
+ private bool $ protectedSet ,
32
+ private bool $ privateSet ,
28
33
private array $ attributes ,
29
34
private array $ hooks ,
30
35
)
@@ -83,7 +88,12 @@ public function equals(ExportedNode $node): bool
83
88
&& $ this ->public === $ node ->public
84
89
&& $ this ->private === $ node ->private
85
90
&& $ this ->static === $ node ->static
86
- && $ this ->readonly === $ node ->readonly ;
91
+ && $ this ->readonly === $ node ->readonly
92
+ && $ this ->abstract === $ node ->abstract
93
+ && $ this ->final === $ node ->final
94
+ && $ this ->publicSet === $ node ->publicSet
95
+ && $ this ->protectedSet === $ node ->protectedSet
96
+ && $ this ->privateSet === $ node ->privateSet ;
87
97
}
88
98
89
99
/**
@@ -99,6 +109,11 @@ public static function __set_state(array $properties): self
99
109
$ properties ['private ' ],
100
110
$ properties ['static ' ],
101
111
$ properties ['readonly ' ],
112
+ $ properties ['abstract ' ],
113
+ $ properties ['final ' ],
114
+ $ properties ['publicSet ' ],
115
+ $ properties ['protectedSet ' ],
116
+ $ properties ['privateSet ' ],
102
117
$ properties ['attributes ' ],
103
118
$ properties ['hooks ' ],
104
119
);
@@ -117,6 +132,11 @@ public static function decode(array $data): self
117
132
$ data ['private ' ],
118
133
$ data ['static ' ],
119
134
$ data ['readonly ' ],
135
+ $ data ['abstract ' ],
136
+ $ data ['final ' ],
137
+ $ data ['publicSet ' ],
138
+ $ data ['protectedSet ' ],
139
+ $ data ['privateSet ' ],
120
140
array_map (static function (array $ attributeData ): ExportedAttributeNode {
121
141
if ($ attributeData ['type ' ] !== ExportedAttributeNode::class) {
122
142
throw new ShouldNotHappenException ();
@@ -148,6 +168,11 @@ public function jsonSerialize()
148
168
'private ' => $ this ->private ,
149
169
'static ' => $ this ->static ,
150
170
'readonly ' => $ this ->readonly ,
171
+ 'abstract ' => $ this ->abstract ,
172
+ 'final ' => $ this ->final ,
173
+ 'publicSet ' => $ this ->publicSet ,
174
+ 'protectedSet ' => $ this ->protectedSet ,
175
+ 'privateSet ' => $ this ->privateSet ,
151
176
'attributes ' => $ this ->attributes ,
152
177
'hooks ' => $ this ->hooks ,
153
178
],
0 commit comments