PHP Class Grpc\AbstractCall

Afficher le fichier Open project: grpc/grpc

Protected Properties

Свойство Type Description
$call Call
$deserialize
$metadata
$trailing_metadata

Méthodes publiques

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éthodes protégées

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.

Method Details

__construct() public méthode

Create a new Call wrapper object.
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)

cancel() public méthode

Cancels the call.
public cancel ( )

deserializeResponse() protected méthode

Deserialize a response value to an object.
protected deserializeResponse ( string $value ) : mixed
$value string The binary value to deserialize
Résultat mixed The deserialized value

getMetadata() public méthode

public getMetadata ( ) : mixed
Résultat mixed The metadata sent by the server.

getPeer() public méthode

public getPeer ( ) : string
Résultat string The URI of the endpoint.

getTrailingMetadata() public méthode

public getTrailingMetadata ( ) : mixed
Résultat mixed The trailing metadata sent by the server.

serializeMessage() protected méthode

Serialize a message to the protobuf binary format.
protected serializeMessage ( mixed $data ) : string
$data mixed The Protobuf message
Résultat string The protobuf binary format

setCallCredentials() public méthode

Set the CallCredentials for the underlying Call.
public setCallCredentials ( CallCredentials $call_credentials )
$call_credentials CallCredentials The CallCredentials object

Property Details

$call protected_oe property

protected Call $call
Résultat Call

$deserialize protected_oe property

protected $deserialize

$metadata protected_oe property

protected $metadata

$trailing_metadata protected_oe property

protected $trailing_metadata