public function addDocumentation(DOMElement $inputElement, $documentation)
    {
        if ($inputElement === $this) {
            $element = $this->dom->documentElement;
        } else {
            $element = $inputElement;
        }

        $doc = $this->dom->createElement('documentation');
        $cdata = $this->dom->createTextNode($documentation);
        $doc->appendChild($cdata);

        if ($element->hasChildNodes()) {
            $element->insertBefore($doc, $element->firstChild);
        } else {
            $element->appendChild($doc);
        }

        return $doc;
    }
public function addDocumentation(DOMElement $inputElement, $documentation)
    {
        if ($inputElement === $this) {
            $element = $this->dom->documentElement;
        } else {
            $element = $inputElement;
        }

        $doc = $this->dom->createElement('documentation');
        $cdata = $this->dom->createTextNode($documentation);
        $doc->appendChild($cdata);

        if ($element->hasChildNodes()) {
            $element->insertBefore($doc, $element->firstChild);
        } else {
            $element->appendChild($doc);
        }

        return $doc;
    }
public function addDocumentation ( DOMElement $ inputElement , $ documentation ) { if ( $ inputElement === $ this ) { $ element = $ this -> dom -> documentElement ; } else { $ element = $ inputElement ; } $ doc = $ this -> dom -> createElement ( 'documentation' ) ; $ cdata = $ this -> dom -> createTextNode ( $ documentation ) ; $ doc -> appendChild ( $ cdata ) ; if ( $ element -> hasChildNodes ( ) ) { $ element -> insertBefore ( $ doc , $ element -> firstChild ) ; } else { $ element -> appendChild ( $ doc ) ; } return $ doc ; }
Add a documentation element to another element in the WSDL.

@param DOMElement $inputElement The DOMElement element to add the documentation.
@param string $documentation The documentation text.
@return DOMElement
@link http://www.w3.org/TR/wsdl#_documentation
Add a documentation element to another element in the WSDL .