Update php_generator.cc

Add type annotations to make the IDE more friendly
pull/22671/head
LIU JIAN 5 years ago committed by GitHub
parent 5aee7d3bc6
commit cb4bc115a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/compiler/php_generator.cc

@ -80,7 +80,8 @@ void PrintMethod(const MethodDescriptor* method, Printer* out) {
if (method->client_streaming()) {
out->Print(vars,
" * @param array $$metadata metadata\n"
" * @param array $$options call options\n */\n"
" * @param array $$options call options\n"
" * @return \\$output_type_id$\n */\n"
"public function $name$($$metadata = [], "
"$$options = []) {\n");
out->Indent();
@ -98,7 +99,8 @@ void PrintMethod(const MethodDescriptor* method, Printer* out) {
out->Print(vars,
" * @param \\$input_type_id$ $$argument input argument\n"
" * @param array $$metadata metadata\n"
" * @param array $$options call options\n */\n"
" * @param array $$options call options\n"
" * @return \\$output_type_id$\n */\n"
"public function $name$(\\$input_type_id$ $$argument,\n"
" $$metadata = [], $$options = []) {\n");
out->Indent();

Loading…
Cancel
Save