@@ -158,24 +158,30 @@ public function getIterator()
158158 return new \ArrayIterator ($ this ->profiles );
159159 }
160160
161- public function __serialize ()
161+ public function serialize ()
162162 {
163- return [ $ this ->template , $ this -> name , $ this -> type , $ this -> starts , $ this -> ends , $ this -> profiles ] ;
163+ return serialize ( $ this ->__serialize ()) ;
164164 }
165165
166- public function serialize ( )
166+ public function unserialize ( $ data )
167167 {
168- return serialize ( $ this ->__serialize ( ));
168+ $ this ->__unserialize ( unserialize ( $ data ));
169169 }
170170
171- public function __unserialize (array $ data )
171+ /**
172+ * @internal
173+ */
174+ public function __serialize ()
172175 {
173- list ( $ this ->template , $ this ->name , $ this ->type , $ this ->starts , $ this ->ends , $ this ->profiles ) = $ data ;
176+ return [ $ this ->template , $ this ->name , $ this ->type , $ this ->starts , $ this ->ends , $ this ->profiles ] ;
174177 }
175178
176- public function unserialize ($ data )
179+ /**
180+ * @internal
181+ */
182+ public function __unserialize (array $ data )
177183 {
178- $ this ->__unserialize ( unserialize ( $ data )) ;
184+ list ( $ this ->template , $ this -> name , $ this -> type , $ this -> starts , $ this -> ends , $ this -> profiles ) = $ data ;
179185 }
180186}
181187
0 commit comments