public function addPrototype($prototype)
    {
        if (is_array($prototype)) {
            require_once 'Zend/Server/Method/Prototype.php';
            $prototype = new Zend_Server_Method_Prototype($prototype);
        } elseif (!$prototype instanceof Zend_Server_Method_Prototype) {
            require_once 'Zend/Server/Exception.php';
            throw new Zend_Server_Exception('Invalid method prototype provided');
        }
        $this->_prototypes[] = $prototype;
        return $this;
    }
public function addPrototype($prototype)
    {
        if (is_array($prototype)) {
            require_once 'Zend/Server/Method/Prototype.php';
            $prototype = new Zend_Server_Method_Prototype($prototype);
        } elseif (!$prototype instanceof Zend_Server_Method_Prototype) {
            require_once 'Zend/Server/Exception.php';
            throw new Zend_Server_Exception('Invalid method prototype provided');
        }
        $this->_prototypes[] = $prototype;
        return $this;
    }
public function addPrototype ( $ prototype ) { if ( is_array ( $ prototype ) ) { require_once 'Zend/Server/Method/Prototype.php' ; $ prototype = new Zend_Server_Method_Prototype ( $ prototype ) ; } elseif ( ! $ prototype instanceof Zend_Server_Method_Prototype ) { require_once 'Zend/Server/Exception.php' ; throw new Zend_Server_Exception ( 'Invalid method prototype provided' ) ; } $ this -> _prototypes [ ] = $ prototype ; return $ this ; }
Add prototype to method definition

@param  array|Zend_Server_Method_Prototype $prototype
@return Zend_Server_Method_Definition
Add prototype to method definition