original_string: protected function _buildCallback(Zend_Server_Reflection_Function_Abstract $reflection)
      {
          $callback = new Zend_Server_Method_Callback();
          if ($reflection instanceof Zend_Server_Reflection_Method) {
              $callback->setType($reflection->isStatic() ? 'static' : 'instance')
                       ->setClass($reflection->getDeclaringClass()->getName())
                       ->setMethod($reflection->getName());
          } elseif ($reflection instanceof Zend_Server_Reflection_Function) {
              $callback->setType('function')
                       ->setFunction($reflection->getName());
          }
          return $callback;
      }
code: protected function _buildCallback(Zend_Server_Reflection_Function_Abstract $reflection)
      {
          $callback = new Zend_Server_Method_Callback();
          if ($reflection instanceof Zend_Server_Reflection_Method) {
              $callback->setType($reflection->isStatic() ? 'static' : 'instance')
                       ->setClass($reflection->getDeclaringClass()->getName())
                       ->setMethod($reflection->getName());
          } elseif ($reflection instanceof Zend_Server_Reflection_Function) {
              $callback->setType('function')
                       ->setFunction($reflection->getName());
          }
          return $callback;
      }
code_tokens: protected function _buildCallback ( Zend_Server_Reflection_Function_Abstract $ reflection ) { $ callback = new Zend_Server_Method_Callback ( ) ; if ( $ reflection instanceof Zend_Server_Reflection_Method ) { $ callback -> setType ( $ reflection -> isStatic ( ) ? 'static' : 'instance' ) -> setClass ( $ reflection -> getDeclaringClass ( ) -> getName ( ) ) -> setMethod ( $ reflection -> getName ( ) ) ; } elseif ( $ reflection instanceof Zend_Server_Reflection_Function ) { $ callback -> setType ( 'function' ) -> setFunction ( $ reflection -> getName ( ) ) ; } return $ callback ; }
docstring: Build callback for method signature
  
  @param  Zend_Server_Reflection_Function_Abstract $reflection
  @return Zend_Server_Method_Callback
docstring_tokens: Build callback for method signature