diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-08-10 15:46:42 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-08-13 10:48:32 -0700 |
commit | e63354a6e71427b273182455b052ffb606e0eadc (patch) | |
tree | c9de491f16a00daad2757f4e9630d775171bbc9f /src/php/lib | |
parent | 35ea361ff5042bc31acd476a9ca6f9d22bf6a1c6 (diff) |
php: wrap getConnectivityState API
Diffstat (limited to 'src/php/lib')
-rwxr-xr-x | src/php/lib/Grpc/BaseStub.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php index a0c677908c..9f5c07b5f5 100755 --- a/src/php/lib/Grpc/BaseStub.php +++ b/src/php/lib/Grpc/BaseStub.php @@ -75,6 +75,14 @@ class BaseStub { } /** + * @param $try_to_connect bool + * @return int The grpc connectivity state + */ + public function getConnectivityState($try_to_connect = false) { + return $this->channel->getConnectivityState($try_to_connect); + } + + /** * Close the communication channel associated with this stub */ public function close() { |