From e80b479de8d6cc6c2df7ee4d1b7a393547481a80 Mon Sep 17 00:00:00 2001 From: Saransh Dhingra Date: Fri, 15 Sep 2023 20:58:25 +0530 Subject: [PATCH] chore: mark connection classes and ConnectionInterface as deprecated (#6616) --- src/V2/Connection/ConnectionInterface.php | 2 ++ src/V2/Connection/Rest.php | 2 ++ src/V2/TranslateClient.php | 1 + 3 files changed, 5 insertions(+) diff --git a/src/V2/Connection/ConnectionInterface.php b/src/V2/Connection/ConnectionInterface.php index 3c40956..fc539cc 100644 --- a/src/V2/Connection/ConnectionInterface.php +++ b/src/V2/Connection/ConnectionInterface.php @@ -22,6 +22,8 @@ /** * Represents a connection to * [Google Cloud Translation](https://cloud.google.com/translation/). + * + * @internal */ interface ConnectionInterface { diff --git a/src/V2/Connection/Rest.php b/src/V2/Connection/Rest.php index 24e1751..d75177b 100644 --- a/src/V2/Connection/Rest.php +++ b/src/V2/Connection/Rest.php @@ -27,6 +27,8 @@ /** * Implementation of the * [Google Cloud Translation REST API](https://cloud.google.com/translation/docs/how-to). + * + * @internal */ class Rest implements ConnectionInterface { diff --git a/src/V2/TranslateClient.php b/src/V2/TranslateClient.php index 9945fb7..a9b613e 100644 --- a/src/V2/TranslateClient.php +++ b/src/V2/TranslateClient.php @@ -63,6 +63,7 @@ class TranslateClient /** * @var ConnectionInterface + * @internal */ protected $connection;