| @@ -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]; |