<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tomof(self, indent=0, maxline=MAX_MOF_LINE):
 """ Return a MOF string with the declaration of this CIM parameter for use in a CIM method declaration. The object is always interpreted as a parameter declaration; so the :attr:`~pywbem.CIMParameter.value` and :attr:`~pywbem.CIMParameter.embedded_object` attributes are ignored. The order of qualifiers is preserved. Parameters: indent (:term:`integer`):
 Number of spaces to indent each line of the returned string, counted in the line with the parameter name. Returns: :term:`unicode string`: MOF string. """


        mof = []

        if self.qualifiers:
            mof.append(_qualifiers_tomof(self.qualifiers, indent + MOF_INDENT,
                                         maxline))

        mof.append(_indent_str(indent))
        mof.append(moftype(self.type, self.reference_class))
        mof.append(u' ')
        mof.append(self.name)

        if self.is_array:
            mof.append(u'[')
            if self.array_size is not None:
                mof.append(six.text_type(self.array_size))
            mof.append(u']')

        return u''.join(mof)