src/XSD2PHP/lib/ZF/1.10.7/Zend/Soap/Wsdl/Strategy/Composite.php
public function addComplexType($type)
    {
        if (!($this->_context instanceof Zend_Soap_Wsdl)) {
            /**
             * @see Zend_Soap_Wsdl_Exception
             */
            require_once "Zend/Soap/Wsdl/Exception.php";
            throw new Zend_Soap_Wsdl_Exception(
                "Cannot add complex type '".$type."', no context is set for this composite strategy."
            );
        }

        $strategy = $this->getStrategyOfType($type);
        $strategy->setContext($this->_context);
        return $strategy->addComplexType($type);
    }
public function addComplexType($type)
    {
        if (!($this->_context instanceof Zend_Soap_Wsdl)) {
            /**
             * @see Zend_Soap_Wsdl_Exception
             */
            require_once "Zend/Soap/Wsdl/Exception.php";
            throw new Zend_Soap_Wsdl_Exception(
                "Cannot add complex type '".$type."', no context is set for this composite strategy."
            );
        }

        $strategy = $this->getStrategyOfType($type);
        $strategy->setContext($this->_context);
        return $strategy->addComplexType($type);
    }
Create a complex type based on a strategy

@throws Zend_Soap_Wsdl_Exception
@param  string $type
@return string XSD type