|
|
@ -39,6 +39,7 @@ abstract class AbstractCall |
|
|
|
protected $call; |
|
|
|
protected $call; |
|
|
|
protected $deserialize; |
|
|
|
protected $deserialize; |
|
|
|
protected $metadata; |
|
|
|
protected $metadata; |
|
|
|
|
|
|
|
protected $trailing_metadata; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create a new Call wrapper object. |
|
|
|
* Create a new Call wrapper object. |
|
|
@ -66,6 +67,7 @@ abstract class AbstractCall |
|
|
|
$this->call = new Call($channel, $method, $deadline); |
|
|
|
$this->call = new Call($channel, $method, $deadline); |
|
|
|
$this->deserialize = $deserialize; |
|
|
|
$this->deserialize = $deserialize; |
|
|
|
$this->metadata = null; |
|
|
|
$this->metadata = null; |
|
|
|
|
|
|
|
$this->trailing_metadata = null; |
|
|
|
if (isset($options['call_credentials_callback']) && |
|
|
|
if (isset($options['call_credentials_callback']) && |
|
|
|
is_callable($call_credentials_callback = |
|
|
|
is_callable($call_credentials_callback = |
|
|
|
$options['call_credentials_callback'])) { |
|
|
|
$options['call_credentials_callback'])) { |
|
|
@ -83,6 +85,14 @@ abstract class AbstractCall |
|
|
|
return $this->metadata; |
|
|
|
return $this->metadata; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @return The trailing metadata sent by the server. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getTrailingMetadata() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->trailing_metadata; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return string The URI of the endpoint. |
|
|
|
* @return string The URI of the endpoint. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|