Overview

Namespaces

  • Grpc

Classes

  • AbstractCall
  • BaseStub
  • BidiStreamingCall
  • ClientStreamingCall
  • ServerStreamingCall
  • UnaryCall
  • Overview
  • Namespace
  • Class

Class AbstractCall

Class AbstractCall.

Direct known subclasses

Grpc\BidiStreamingCall, Grpc\ClientStreamingCall, Grpc\ServerStreamingCall, Grpc\UnaryCall
Abstract
Namespace: Grpc
Package: Grpc
Located at AbstractCall.php
Methods summary
public
# __construct( Grpc\Channel $channel, string $method, callable $deserialize, array $options = [] )

Create a new Call wrapper object.

Create a new Call wrapper object.

Parameters

$channel
The channel to communicate on
$method

The method to call on the remote server

$deserialize

A callback function to deserialize the response

$options
Call options (optional)
public mixed
# getMetadata( )

Returns

mixed
The metadata sent by the server
public mixed
# getTrailingMetadata( )

Returns

mixed
The trailing metadata sent by the server
public string
# getPeer( )

Returns

string
The URI of the endpoint
public
# cancel( )

Cancels the call.

Cancels the call.

protected string
# _serializeMessage( mixed $data )

Serialize a message to the protobuf binary format.

Serialize a message to the protobuf binary format.

Parameters

$data
The Protobuf message

Returns

string
The protobuf binary format
protected mixed
# _deserializeResponse( string $value )

Deserialize a response value to an object.

Deserialize a response value to an object.

Parameters

$value
The binary value to deserialize

Returns

mixed
The deserialized value
public
# setCallCredentials( CallCredentials $call_credentials )

Set the CallCredentials for the underlying Call.

Set the CallCredentials for the underlying Call.

Parameters

$call_credentials
The CallCredentials object
Properties summary
protected Call $call
#
protected $deserialize
#
protected $metadata
#
protected $trailing_metadata
#
API documentation generated by ApiGen