diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-06-14 19:27:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-14 19:27:23 -0700 |
commit | 6f42fd925f84a4fd5ff6a264b483cb4f01fb1592 (patch) | |
tree | fc0a57700fea7c46a983993eb44ba08bac163dca /src/php/lib/Grpc/AbstractCall.php | |
parent | febfd32af9a920b840f6b5684247b7e005552f7c (diff) | |
parent | 6668d51b3c6544ab988a503977e0e80475ac5d3e (diff) |
Merge pull request #6632 from stanley-cheung/php-add-trailing-metadata-api
PHP: add call getTrailingMetadata API
Diffstat (limited to 'src/php/lib/Grpc/AbstractCall.php')
-rw-r--r-- | src/php/lib/Grpc/AbstractCall.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/php/lib/Grpc/AbstractCall.php b/src/php/lib/Grpc/AbstractCall.php index 712af91eb2..c86d298805 100644 --- a/src/php/lib/Grpc/AbstractCall.php +++ b/src/php/lib/Grpc/AbstractCall.php @@ -39,6 +39,7 @@ abstract class AbstractCall protected $call; protected $deserialize; protected $metadata; + protected $trailing_metadata; /** * Create a new Call wrapper object. @@ -66,6 +67,7 @@ abstract class AbstractCall $this->call = new Call($channel, $method, $deadline); $this->deserialize = $deserialize; $this->metadata = null; + $this->trailing_metadata = null; if (isset($options['call_credentials_callback']) && is_callable($call_credentials_callback = $options['call_credentials_callback'])) { @@ -84,6 +86,14 @@ abstract class AbstractCall } /** + * @return The trailing metadata sent by the server. + */ + public function getTrailingMetadata() + { + return $this->trailing_metadata; + } + + /** * @return string The URI of the endpoint. */ public function getPeer() |