No, unfortunately this is not possible. That means that whenever you
serialize an object with the PHP function serialize, its methods will be
lost (and you'll not be able to restore them with unserialize anymore).
Serializing in PHP could be used only to serialize simple variable of
type string, integer, double, array and object.