public function __sleep() { return array_merge(parent::__sleep(), array('_host', '_port', '_timeout', '_useSsl', '_username', '_password')); }