CodeExplorer MyWakeup example
$mySerializable =
new MySerializable();
$fooSerializable =
new FooSerializable('bar'
);
} finally { restore_error_handler();
} yield ['serializable',
[$mySerializable,
$mySerializable]];
yield ['foo-serializable',
$fooSerializable];
unset($mySerializable,
$fooSerializable,
$errorHandler);
$value =
new MyWakeup();
$value->sub =
new MyWakeup();
$value->sub->sub = 123;
$value->sub->bis = 123;
$value->sub->baz = 123;
yield ['wakeup',
$value];
yield ['clone',
[new MyCloneable(),
new MyNotCloneable()]];
yield ['private',
[new MyPrivateValue(123, 234
),
new MyPrivateChildValue(123, 234
)]];