◆ __construct()
| Grpc\AbstractCall::__construct |
( |
Channel |
$channel, |
|
|
|
$method, |
|
|
|
$deserialize, |
|
|
array |
$options = [] |
|
) |
| |
Create a new Call wrapper object.
- Parameters
-
| Channel | $channel | The channel to communicate on |
| string | $method | The method to call on the remote server |
| callback | $deserialize | A callback function to deserialize the response |
| array | $options | Call options (optional) |
◆ _deserializeResponse()
| Grpc\AbstractCall::_deserializeResponse |
( |
|
$value | ) |
|
|
protected |
Deserialize a response value to an object.
- Parameters
-
| string | $value | The binary value to deserialize |
- Returns
- mixed The deserialized value
◆ _serializeMessage()
| Grpc\AbstractCall::_serializeMessage |
( |
|
$data | ) |
|
|
protected |
Serialize a message to the protobuf binary format.
- Parameters
-
| mixed | $data | The Protobuf message |
- Returns
- string The protobuf binary format
◆ cancel()
| Grpc\AbstractCall::cancel |
( |
| ) |
|
◆ getMetadata()
| Grpc\AbstractCall::getMetadata |
( |
| ) |
|
◆ getPeer()
| Grpc\AbstractCall::getPeer |
( |
| ) |
|
- Returns
- string The URI of the endpoint
◆ getTrailingMetadata()
| Grpc\AbstractCall::getTrailingMetadata |
( |
| ) |
|
- Returns
- mixed The trailing metadata sent by the server
◆ setCallCredentials()
| Grpc\AbstractCall::setCallCredentials |
( |
|
$call_credentials | ) |
|
◆ $call
◆ $deserialize
| Grpc\AbstractCall::$deserialize |
|
protected |
◆ $metadata
| Grpc\AbstractCall::$metadata |
|
protected |
◆ $trailing_metadata
| Grpc\AbstractCall::$trailing_metadata |
|
protected |
The documentation for this class was generated from the following file: