File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ final public function __sleep()
96
96
throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
97
97
}
98
98
99
+ /**
100
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
101
+ *
102
+ * @return array<string, mixed>
103
+ */
104
+ public function __serialize (): array
105
+ {
106
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
107
+ }
108
+
99
109
/**
100
110
* @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
101
111
*
@@ -106,6 +116,16 @@ final public function __wakeup()
106
116
throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
107
117
}
108
118
119
+ /**
120
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
121
+ *
122
+ * @param array<string, mixed> $data
123
+ */
124
+ public function __unserialize (array $ data ): void
125
+ {
126
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
127
+ }
128
+
109
129
/**
110
130
* Get the value of the enumerator
111
131
*
You can’t perform that action at this time.
0 commit comments