aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/php/helloworld.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/php/helloworld.php')
-rw-r--r--examples/php/helloworld.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/php/helloworld.php b/examples/php/helloworld.php
index 22da3d3970..50923e6fcd 100644
--- a/examples/php/helloworld.php
+++ b/examples/php/helloworld.php
@@ -1,7 +1,7 @@
<?php
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0
// Source: helloworld.proto
-// Date: 2015-05-29 21:39:19
+// Date: 2015-09-24 20:40:14
namespace helloworld {
@@ -143,18 +143,16 @@ namespace helloworld {
namespace helloworld {
- class GreeterClient{
+ class GreeterClient extends \Grpc\BaseStub {
- private $rpc_impl;
-
- public function __construct($rpc_impl) {
- $this->rpc_impl = $rpc_impl;
+ public function __construct($hostname, $opts) {
+ parent::__construct($hostname, $opts);
}
/**
* @param helloworld\HelloRequest $input
*/
- public function SayHello(\helloworld\HelloRequest $argument, $metadata = array()) {
- return $this->rpc_impl->_simpleRequest('/helloworld.Greeter/SayHello', $argument, '\helloworld\HelloReply::deserialize', $metadata);
+ public function SayHello(\helloworld\HelloRequest $argument, $metadata = array(), $options = array()) {
+ return $this->_simpleRequest('/helloworld.Greeter/SayHello', $argument, '\helloworld\HelloReply::deserialize', $metadata, $options);
}
}
}