original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Add prototype to method definition
  
  @param  array|Zend_Server_Method_Prototype $prototype
  @return Zend_Server_Method_Definition
docstring_tokens: Add prototype to method definition