Property | Type | Description | |
---|---|---|---|
$call | Call | ||
$deserialize | |||
$metadata | |||
$trailing_metadata |
Method | Description | |
---|---|---|
__construct ( Channel $channel, string $method, callback $deserialize, array $options = [] ) | Create a new Call wrapper object. | |
cancel ( ) | Cancels the call. | |
getMetadata ( ) : mixed | ||
getPeer ( ) : string | ||
getTrailingMetadata ( ) : mixed | ||
setCallCredentials ( CallCredentials $call_credentials ) | Set the CallCredentials for the underlying Call. |
Method | Description | |
---|---|---|
deserializeResponse ( string $value ) : mixed | Deserialize a response value to an object. | |
serializeMessage ( mixed $data ) : string | Serialize a message to the protobuf binary format. |
public __construct ( Channel $channel, string $method, callback $deserialize, array $options = [] ) | ||
$channel | Channel | The channel to communicate on |
$method | string | The method to call on the remote server |
$deserialize | callback | A callback function to deserialize the response |
$options | array | Call options (optional) |
protected deserializeResponse ( string $value ) : mixed | ||
$value | string | The binary value to deserialize |
return | mixed | The deserialized value |
public getMetadata ( ) : mixed | ||
return | mixed | The metadata sent by the server. |
public getTrailingMetadata ( ) : mixed | ||
return | mixed | The trailing metadata sent by the server. |
protected serializeMessage ( mixed $data ) : string | ||
$data | mixed | The Protobuf message |
return | string | The protobuf binary format |
public setCallCredentials ( CallCredentials $call_credentials ) | ||
$call_credentials | CallCredentials | The CallCredentials object |