프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
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 |
리턴 | mixed | The deserialized value |
public getTrailingMetadata ( ) : mixed | ||
리턴 | mixed | The trailing metadata sent by the server. |
protected serializeMessage ( mixed $data ) : string | ||
$data | mixed | The Protobuf message |
리턴 | string | The protobuf binary format |
public setCallCredentials ( CallCredentials $call_credentials ) | ||
$call_credentials | CallCredentials | The CallCredentials object |