original_string: private static function setIntrospectionMethods($methods) {
  
          $methods->add(RpcMethod::create("system.getCapabilities", '\Comodojo\RpcServer\Reserved\GetCapabilities::execute')
              ->setDescription("This method lists all the capabilites that the RPC server has: the (more or less standard) extensions to the RPC spec that it adheres to")
              ->setReturnType('struct')
          );
  
          $methods->add(RpcMethod::create("system.listMethods", '\Comodojo\RpcServer\Introspection\ListMethods::execute')
              ->setDescription("This method lists all the methods that the RPC server knows how to dispatch")
              ->setReturnType('array')
          );
  
          $methods->add(RpcMethod::create("system.methodHelp", '\Comodojo\RpcServer\Introspection\MethodHelp::execute')
              ->setDescription("Returns help text if defined for the method passed, otherwise returns an empty string")
              ->setReturnType('string')
              ->addParameter('string', 'method')
          );
  
          $methods->add(RpcMethod::create("system.methodSignature", '\Comodojo\RpcServer\Introspection\MethodSignature::execute')
              ->setDescription("Returns an array of known signatures (an array of arrays) for the method name passed.".
                  "If no signatures are known, returns a none-array (test for type != array to detect missing signature)")
              ->setReturnType('array')
              ->addParameter('string', 'method')
          );
  
          $methods->add(RpcMethod::create("system.multicall", '\Comodojo\RpcServer\Reserved\Multicall::execute')
              ->setDescription("Boxcar multiple RPC calls in one request. See http://www.xmlrpc.com/discuss/msgReader\$1208 for details")
              ->setReturnType('array')
              ->addParameter('array', 'requests')
          );
  
      }
code: private static function setIntrospectionMethods($methods) {
  
          $methods->add(RpcMethod::create("system.getCapabilities", '\Comodojo\RpcServer\Reserved\GetCapabilities::execute')
              ->setDescription("This method lists all the capabilites that the RPC server has: the (more or less standard) extensions to the RPC spec that it adheres to")
              ->setReturnType('struct')
          );
  
          $methods->add(RpcMethod::create("system.listMethods", '\Comodojo\RpcServer\Introspection\ListMethods::execute')
              ->setDescription("This method lists all the methods that the RPC server knows how to dispatch")
              ->setReturnType('array')
          );
  
          $methods->add(RpcMethod::create("system.methodHelp", '\Comodojo\RpcServer\Introspection\MethodHelp::execute')
              ->setDescription("Returns help text if defined for the method passed, otherwise returns an empty string")
              ->setReturnType('string')
              ->addParameter('string', 'method')
          );
  
          $methods->add(RpcMethod::create("system.methodSignature", '\Comodojo\RpcServer\Introspection\MethodSignature::execute')
              ->setDescription("Returns an array of known signatures (an array of arrays) for the method name passed.".
                  "If no signatures are known, returns a none-array (test for type != array to detect missing signature)")
              ->setReturnType('array')
              ->addParameter('string', 'method')
          );
  
          $methods->add(RpcMethod::create("system.multicall", '\Comodojo\RpcServer\Reserved\Multicall::execute')
              ->setDescription("Boxcar multiple RPC calls in one request. See http://www.xmlrpc.com/discuss/msgReader\$1208 for details")
              ->setReturnType('array')
              ->addParameter('array', 'requests')
          );
  
      }
code_tokens: private static function setIntrospectionMethods ( $ methods ) { $ methods -> add ( RpcMethod :: create ( "system.getCapabilities" , '\Comodojo\RpcServer\Reserved\GetCapabilities::execute' ) -> setDescription ( "This method lists all the capabilites that the RPC server has: the (more or less standard) extensions to the RPC spec that it adheres to" ) -> setReturnType ( 'struct' ) ) ; $ methods -> add ( RpcMethod :: create ( "system.listMethods" , '\Comodojo\RpcServer\Introspection\ListMethods::execute' ) -> setDescription ( "This method lists all the methods that the RPC server knows how to dispatch" ) -> setReturnType ( 'array' ) ) ; $ methods -> add ( RpcMethod :: create ( "system.methodHelp" , '\Comodojo\RpcServer\Introspection\MethodHelp::execute' ) -> setDescription ( "Returns help text if defined for the method passed, otherwise returns an empty string" ) -> setReturnType ( 'string' ) -> addParameter ( 'string' , 'method' ) ) ; $ methods -> add ( RpcMethod :: create ( "system.methodSignature" , '\Comodojo\RpcServer\Introspection\MethodSignature::execute' ) -> setDescription ( "Returns an array of known signatures (an array of arrays) for the method name passed." . "If no signatures are known, returns a none-array (test for type != array to detect missing signature)" ) -> setReturnType ( 'array' ) -> addParameter ( 'string' , 'method' ) ) ; $ methods -> add ( RpcMethod :: create ( "system.multicall" , '\Comodojo\RpcServer\Reserved\Multicall::execute' ) -> setDescription ( "Boxcar multiple RPC calls in one request. See http://www.xmlrpc.com/discuss/msgReader\$1208 for details" ) -> setReturnType ( 'array' ) -> addParameter ( 'array' , 'requests' ) ) ; }
docstring: Inject introspection and reserved RPC methods
  
  @param Methods $methods
docstring_tokens: Inject introspection and reserved RPC methods