diff options
author | thinkerou <thinkerou@gmail.com> | 2016-12-15 00:27:03 +0800 |
---|---|---|
committer | thinkerou <thinkerou@gmail.com> | 2016-12-15 00:27:03 +0800 |
commit | 0c3e8dbc68d9a1796dd75e241a2902ee3ea8fbfd (patch) | |
tree | 017ff081e4e8ae7bfeb9ddde6456c0d6fd708a19 /src/php/lib/Grpc/ServerStreamingCall.php | |
parent | 9addf903de165bdab8a4b41f4678b4196a2257f2 (diff) |
fix code style
Diffstat (limited to 'src/php/lib/Grpc/ServerStreamingCall.php')
-rw-r--r-- | src/php/lib/Grpc/ServerStreamingCall.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/php/lib/Grpc/ServerStreamingCall.php b/src/php/lib/Grpc/ServerStreamingCall.php index 5aeeafa94a..406512bf57 100644 --- a/src/php/lib/Grpc/ServerStreamingCall.php +++ b/src/php/lib/Grpc/ServerStreamingCall.php @@ -35,8 +35,8 @@ namespace Grpc; /** - * Represents an active call that sends a single message and then gets a stream - * of responses. + * Represents an active call that sends a single message and then gets a + * stream of responses. */ class ServerStreamingCall extends AbstractCall { @@ -45,10 +45,11 @@ class ServerStreamingCall extends AbstractCall * * @param mixed $data The data to send * @param array $metadata Metadata to send with the call, if applicable - * @param array $options an array of options, possible keys: - * 'flags' => a number + * (optional) + * @param array $options An array of options, possible keys: + * 'flags' => a number (optional) */ - public function start($data, $metadata = [], $options = []) + public function start($data, array $metadata = [], array $options = []) { $message_array = ['message' => $this->serializeMessage($data)]; if (array_key_exists('flags', $options)) { @@ -82,8 +83,8 @@ class ServerStreamingCall extends AbstractCall /** * Wait for the server to send the status, and return it. * - * @return \stdClass The status object, with integer $code, string $details, - * and array $metadata members + * @return \stdClass The status object, with integer $code, string + * $details, and array $metadata members */ public function getStatus() { |