PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/grpc/grpc/src/lib/UnaryCall.php +4 -2 1.2.3 → 1.4.2 View file →
@@ -16,13 +16,15 @@
16 16 * See the License for the specific language governing permissions and
17 17 * limitations under the License.
18 18 *
19 19 */
20 -namespace Dudlewebs\WPMCS\Grpc;
20 +namespace Dudlewebs\WPMCS\GCP\Grpc;
21 21
22 22 /**
23 23 * Represents an active call that sends a single message and then gets a
24 24 * single response.
25 + *
26 + * @template T of \Google\Protobuf\Internal\Message
25 27 */
26 28 class UnaryCall extends AbstractCall
27 29 {
28 30 /**
@@ -44,9 +46,9 @@
44 46 }
45 47 /**
46 48 * Wait for the server to respond with data and a status.
47 49 *
48 - * @return array [response data, status]
50 + * @return array{0: T|null, 1: \stdClass} [response data, status]
49 51 */
50 52 public function wait()
51 53 {
52 54 $batch = [OP_RECV_MESSAGE => \true, OP_RECV_STATUS_ON_CLIENT => \true];