original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Set callback type
  
  @param  string $type
  @return Zend_Server_Method_Callback
  @throws Zend_Server_Exception
docstring_tokens: Set callback type