WSDL\XML\XMLProvider::portType PHP Method

portType() private method

private portType ( )
    private function portType()
    {
        $name = $this->builder->getName();
        $portTypeElement = $this->createElementWithAttributes('portType', ['name' => $name . 'PortType']);
        foreach ($this->builder->getMethods() as $method) {
            $methodName = $method->getName();
            $operationElement = $this->createElementWithAttributes('operation', ['name' => $methodName]);
            $inputElement = $this->createElementWithAttributes('input', ['message' => 'tns:' . $methodName . 'Request']);
            $operationElement->appendChild($inputElement);
            $outputElement = $this->createElementWithAttributes('output', ['message' => 'tns:' . $methodName . 'Response']);
            $operationElement->appendChild($outputElement);
            $portTypeElement->appendChild($operationElement);
        }
        $this->definitionsRootNode->appendChild($portTypeElement);
        return $this;
    }