code: def tomof(self, indent=0, maxline=MAX_MOF_LINE):
          
  
          mof = []
  
          if self.qualifiers:
              mof.append(_qualifiers_tomof(self.qualifiers, indent + MOF_INDENT,
                                           maxline))
  
          mof.append(_indent_str(indent))
          # return_type is ensured not to be None or reference
          mof.append(moftype(self.return_type, None))
          mof.append(u' ')
          mof.append(self.name)
  
          if self.parameters.values():
              mof.append(u'(\n')
  
              mof_parms = []
              for p in self.parameters.itervalues():
                  mof_parms.append(p.tomof(indent + MOF_INDENT, maxline))
              mof.append(u',\n'.join(mof_parms))
  
              mof.append(u');\n')
          else:
              mof.append(u'();\n')
  
          return u''.join(mof)
docs: Return a MOF string with the declaration of this CIM method for use in
          a CIM class declaration.
  
          The order of parameters and qualifiers is preserved.
  
          Parameters:
  
            indent (:term:`integer`): Number of spaces to indent each line of
              the returned string, counted in the line with the method name.
  
          Returns:
  
            :term:`unicode string`: MOF string.