public function addBinding($name, $portType)
    {
        $binding = $this->dom->createElement('binding');
        $binding->setAttribute('name', $name);
        $binding->setAttribute('type', $portType);

        $this->wsdl->appendChild($binding);

        return $binding;
    }
public function addBinding($name, $portType)
    {
        $binding = $this->dom->createElement('binding');
        $binding->setAttribute('name', $name);
        $binding->setAttribute('type', $portType);

        $this->wsdl->appendChild($binding);

        return $binding;
    }
public function addBinding ( $ name , $ portType ) { $ binding = $ this -> dom -> createElement ( 'binding' ) ; $ binding -> setAttribute ( 'name' , $ name ) ; $ binding -> setAttribute ( 'type' , $ portType ) ; $ this -> wsdl -> appendChild ( $ binding ) ; return $ binding ; }
Add a binding element to the WSDL.

@param string $name The name of the binding.
@param string $portType The portType to bind.
@return DOMElement
Add a binding element to the WSDL .