private function getSocketDisconnectorType($type) { switch ($type) { case self::CONNECTOR: return 'disconnect'; case self::BINDER: return 'unbind'; default: return 'fail'; } }