aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/AbstractCall.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/lib/Grpc/AbstractCall.php')
-rw-r--r--src/php/lib/Grpc/AbstractCall.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/php/lib/Grpc/AbstractCall.php b/src/php/lib/Grpc/AbstractCall.php
index 9f0b02b8bb..40387abdc0 100644
--- a/src/php/lib/Grpc/AbstractCall.php
+++ b/src/php/lib/Grpc/AbstractCall.php
@@ -58,12 +58,11 @@ abstract class AbstractCall
* the response
* @param array $options Call options (optional)
*/
- public function __construct(
- Channel $channel,
- $method,
- $deserialize,
- array $options = []
- ) {
+ public function __construct(Channel $channel,
+ $method,
+ $deserialize,
+ array $options = [])
+ {
if (array_key_exists('timeout', $options) &&
is_numeric($timeout = $options['timeout'])
) {
@@ -127,7 +126,7 @@ abstract class AbstractCall
*
* @return string The protobuf binary format
*/
- protected function serializeMessage($data)
+ protected function _serializeMessage($data)
{
// Proto3 implementation
if (method_exists($data, 'encode')) {
@@ -145,7 +144,7 @@ abstract class AbstractCall
*
* @return mixed The deserialized value
*/
- protected function deserializeResponse($value)
+ protected function _deserializeResponse($value)
{
if ($value === null) {
return;