public function setType($type)
    {
        if (!in_array($type, $this->_types)) {
            require_once 'Zend/Server/Exception.php';
            throw new Zend_Server_Exception('Invalid method callback type  passed to ' . __CLASS__ . '::' . __METHOD__);
        }
        $this->_type = $type;
        return $this;
    }
public function setType($type)
    {
        if (!in_array($type, $this->_types)) {
            require_once 'Zend/Server/Exception.php';
            throw new Zend_Server_Exception('Invalid method callback type  passed to ' . __CLASS__ . '::' . __METHOD__);
        }
        $this->_type = $type;
        return $this;
    }
public function setType ( $ type ) { if ( ! in_array ( $ type , $ this -> _types ) ) { require_once 'Zend/Server/Exception.php' ; throw new Zend_Server_Exception ( 'Invalid method callback type  passed to ' . __CLASS__ . '::' . __METHOD__ ) ; } $ this -> _type = $ type ; return $ this ; }
Set callback type

@param  string $type
@return Zend_Server_Method_Callback
@throws Zend_Server_Exception
Set callback type