public function setComplexTypeStrategy($strategy)
    {
        if ($strategy === true) {
            require_once "Zend/Soap/Wsdl/Strategy/DefaultComplexType.php";
            $strategy = new Zend_Soap_Wsdl_Strategy_DefaultComplexType();
        } elseif ($strategy === false) {
            require_once "Zend/Soap/Wsdl/Strategy/AnyType.php";
            $strategy = new Zend_Soap_Wsdl_Strategy_AnyType();
        } elseif (is_string($strategy)) {
            if (class_exists($strategy)) {
                $strategy = new $strategy();
            } else {
                require_once "Zend/Soap/Wsdl/Exception.php";
                throw new Zend_Soap_Wsdl_Exception(
                    sprintf("Strategy with name '%s does not exist.", $strategy
                ));
            }
        }

        if (!($strategy instanceof Zend_Soap_Wsdl_Strategy_Interface)) {
            require_once "Zend/Soap/Wsdl/Exception.php";
            throw new Zend_Soap_Wsdl_Exception("Set a strategy that is not of type 'Zend_Soap_Wsdl_Strategy_Interface'");
        }
        $this->_strategy = $strategy;
        return $this;
    }
public function setComplexTypeStrategy($strategy)
    {
        if ($strategy === true) {
            require_once "Zend/Soap/Wsdl/Strategy/DefaultComplexType.php";
            $strategy = new Zend_Soap_Wsdl_Strategy_DefaultComplexType();
        } elseif ($strategy === false) {
            require_once "Zend/Soap/Wsdl/Strategy/AnyType.php";
            $strategy = new Zend_Soap_Wsdl_Strategy_AnyType();
        } elseif (is_string($strategy)) {
            if (class_exists($strategy)) {
                $strategy = new $strategy();
            } else {
                require_once "Zend/Soap/Wsdl/Exception.php";
                throw new Zend_Soap_Wsdl_Exception(
                    sprintf("Strategy with name '%s does not exist.", $strategy
                ));
            }
        }

        if (!($strategy instanceof Zend_Soap_Wsdl_Strategy_Interface)) {
            require_once "Zend/Soap/Wsdl/Exception.php";
            throw new Zend_Soap_Wsdl_Exception("Set a strategy that is not of type 'Zend_Soap_Wsdl_Strategy_Interface'");
        }
        $this->_strategy = $strategy;
        return $this;
    }
public function setComplexTypeStrategy ( $ strategy ) { if ( $ strategy === true ) { require_once "Zend/Soap/Wsdl/Strategy/DefaultComplexType.php" ; $ strategy = new Zend_Soap_Wsdl_Strategy_DefaultComplexType ( ) ; } elseif ( $ strategy === false ) { require_once "Zend/Soap/Wsdl/Strategy/AnyType.php" ; $ strategy = new Zend_Soap_Wsdl_Strategy_AnyType ( ) ; } elseif ( is_string ( $ strategy ) ) { if ( class_exists ( $ strategy ) ) { $ strategy = new $ strategy ( ) ; } else { require_once "Zend/Soap/Wsdl/Exception.php" ; throw new Zend_Soap_Wsdl_Exception ( sprintf ( "Strategy with name '%s does not exist." , $ strategy ) ) ; } } if ( ! ( $ strategy instanceof Zend_Soap_Wsdl_Strategy_Interface ) ) { require_once "Zend/Soap/Wsdl/Exception.php" ; throw new Zend_Soap_Wsdl_Exception ( "Set a strategy that is not of type 'Zend_Soap_Wsdl_Strategy_Interface'" ) ; } $ this -> _strategy = $ strategy ; return $ this ; }
Set a strategy for complex type detection and handling

@todo Boolean is for backwards compability with extractComplexType object var. Remove it in later versions.
@param boolean|string|Zend_Soap_Wsdl_Strategy_Interface $strategy
@return Zend_Soap_Wsdl
Set a strategy for complex type detection and handling