public function __wakeup() { if (isset($this->fix, $this->fix[1])) { $this->__construct($this->fix[0], new \DateTimeZone($this->fix[1])); unset($this->fix); } elseif (isset($this->fix)) { $this->__construct($this->fix[0]); unset($this->fix); } else { parent::__wakeup(); } }
public function __wakeup() { $this->datetime->__wakeup(); }
function __wakeup() { global $foo; $foo = $this; parent::__wakeup(); }