The magic wakeup method is called by the PHP runtime environment when a
serialized instance of this class gets unserialized and all properties
are restored. This implementation of the __wakeup() method sets
a flag that this object was restored from the cache and it restores the
dependency between this class or interface and it's child methods.