diff options
author | 2016-12-15 00:27:03 +0800 | |
---|---|---|
committer | 2016-12-15 00:27:03 +0800 | |
commit | 0c3e8dbc68d9a1796dd75e241a2902ee3ea8fbfd (patch) | |
tree | 017ff081e4e8ae7bfeb9ddde6456c0d6fd708a19 /src/php/lib/Grpc/ClientStreamingCall.php | |
parent | 9addf903de165bdab8a4b41f4678b4196a2257f2 (diff) |
fix code style
Diffstat (limited to 'src/php/lib/Grpc/ClientStreamingCall.php')
-rw-r--r-- | src/php/lib/Grpc/ClientStreamingCall.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/php/lib/Grpc/ClientStreamingCall.php b/src/php/lib/Grpc/ClientStreamingCall.php index 20db809ea3..c542f08872 100644 --- a/src/php/lib/Grpc/ClientStreamingCall.php +++ b/src/php/lib/Grpc/ClientStreamingCall.php @@ -35,8 +35,8 @@ namespace Grpc; /** - * Represents an active call that sends a stream of messages and then gets a - * single response. + * Represents an active call that sends a stream of messages and then gets + * a single response. */ class ClientStreamingCall extends AbstractCall { @@ -44,8 +44,9 @@ class ClientStreamingCall extends AbstractCall * Start the call. * * @param array $metadata Metadata to send with the call, if applicable + * (optional) */ - public function start($metadata = []) + public function start(array $metadata = []) { $this->call->startBatch([ OP_SEND_INITIAL_METADATA => $metadata, @@ -57,8 +58,8 @@ class ClientStreamingCall extends AbstractCall * wait is called. * * @param ByteBuffer $data The data to write - * @param array $options an array of options, possible keys: - * 'flags' => a number + * @param array $options An array of options, possible keys: + * 'flags' => a number (optional) */ public function write($data, array $options = []) { |