Свойство | Type | Description | |
---|---|---|---|
$call | Call | ||
$deserialize | |||
$metadata | |||
$trailing_metadata |
Méthode | 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. |
Méthode | 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 |
Résultat | mixed | The deserialized value |
public getMetadata ( ) : mixed | ||
Résultat | mixed | The metadata sent by the server. |
public getTrailingMetadata ( ) : mixed | ||
Résultat | mixed | The trailing metadata sent by the server. |
protected serializeMessage ( mixed $data ) : string | ||
$data | mixed | The Protobuf message |
Résultat | string | The protobuf binary format |
public setCallCredentials ( CallCredentials $call_credentials ) | ||
$call_credentials | CallCredentials | The CallCredentials object |