PHP Класс Grpc\AbstractCall

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$call Call
$deserialize
$metadata
$trailing_metadata

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
deserializeResponse ( string $value ) : mixed Deserialize a response value to an object.
serializeMessage ( mixed $data ) : string Serialize a message to the protobuf binary format.

Описание методов

__construct() публичный Метод

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() публичный Метод

Cancels the call.
public cancel ( )

deserializeResponse() защищенный Метод

Deserialize a response value to an object.
protected deserializeResponse ( string $value ) : mixed
$value string The binary value to deserialize
Результат mixed The deserialized value

getMetadata() публичный Метод

public getMetadata ( ) : mixed
Результат mixed The metadata sent by the server.

getPeer() публичный Метод

public getPeer ( ) : string
Результат string The URI of the endpoint.

getTrailingMetadata() публичный Метод

public getTrailingMetadata ( ) : mixed
Результат mixed The trailing metadata sent by the server.

serializeMessage() защищенный Метод

Serialize a message to the protobuf binary format.
protected serializeMessage ( mixed $data ) : string
$data mixed The Protobuf message
Результат string The protobuf binary format

setCallCredentials() публичный Метод

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

Описание свойств

$call защищенное свойство

protected Call $call
Результат Call

$deserialize защищенное свойство

protected $deserialize

$metadata защищенное свойство

protected $metadata

$trailing_metadata защищенное свойство

protected $trailing_metadata