aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/BaseStub.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/lib/Grpc/BaseStub.php')
-rw-r--r--src/php/lib/Grpc/BaseStub.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php
index a9e77b9396..ed504f85a8 100644
--- a/src/php/lib/Grpc/BaseStub.php
+++ b/src/php/lib/Grpc/BaseStub.php
@@ -146,6 +146,14 @@ class BaseStub
}
/**
+ * Close the communication channel associated with this stub.
+ */
+ public function close()
+ {
+ $this->channel->close();
+ }
+
+ /**
* @param $new_state Connect state
*
* @return bool true if state is CHANNEL_READY
@@ -164,14 +172,6 @@ class BaseStub
}
/**
- * Close the communication channel associated with this stub.
- */
- public function close()
- {
- $this->channel->close();
- }
-
- /**
* constructs the auth uri for the jwt.
*
* @param string $method The method string
@@ -235,7 +235,7 @@ class BaseStub
*
* @return SimpleSurfaceActiveCall The active call object
*/
- public function _simpleRequest($method,
+ protected function _simpleRequest($method,
$argument,
$deserialize,
array $metadata = [],
@@ -270,7 +270,7 @@ class BaseStub
*
* @return ClientStreamingSurfaceActiveCall The active call object
*/
- public function _clientStreamRequest($method,
+ protected function _clientStreamRequest($method,
$deserialize,
array $metadata = [],
array $options = [])
@@ -305,7 +305,7 @@ class BaseStub
*
* @return ServerStreamingSurfaceActiveCall The active call object
*/
- public function _serverStreamRequest($method,
+ protected function _serverStreamRequest($method,
$argument,
$deserialize,
array $metadata = [],
@@ -339,7 +339,7 @@ class BaseStub
*
* @return BidiStreamingSurfaceActiveCall The active call object
*/
- public function _bidiRequest($method,
+ protected function _bidiRequest($method,
$deserialize,
array $metadata = [],
array $options = [])