From 09223923f29a11148bb05bf6b543d9060fa4de1b Mon Sep 17 00:00:00 2001
From: Dimitris Bozelos <dbozelos@gmail.com>
Date: Thu, 13 Apr 2023 03:05:15 +0000
Subject: [PATCH] Issue #3350522 Added return types in connection type

---
 src/Entity/ConnectionType.php          | 8 ++++----
 src/Entity/ConnectionTypeInterface.php | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/Entity/ConnectionType.php b/src/Entity/ConnectionType.php
index 4b229d9..c1585e2 100644
--- a/src/Entity/ConnectionType.php
+++ b/src/Entity/ConnectionType.php
@@ -119,28 +119,28 @@ class ConnectionType extends ConfigEntityBase implements
   /**
    * {@inheritdoc}
    */
-  public function getApiId() {
+  public function getApiId(): ?string {
     return $this->api_id;
   }
 
   /**
    * {@inheritdoc}
    */
-  public function getApiVersion() {
+  public function getApiVersion(): ?string {
     return $this->api_version;
   }
 
   /**
    * {@inheritdoc}
    */
-  public function getBaseNamespace() {
+  public function getBaseNamespace(): ?string {
     return $this->base_namespace;
   }
 
   /**
    * {@inheritdoc}
    */
-  public function getAuthentication() {
+  public function getAuthentication(): ?array {
     return $this->authentication;
   }
 
diff --git a/src/Entity/ConnectionTypeInterface.php b/src/Entity/ConnectionTypeInterface.php
index b1d9d84..b4cd077 100644
--- a/src/Entity/ConnectionTypeInterface.php
+++ b/src/Entity/ConnectionTypeInterface.php
@@ -23,7 +23,7 @@ interface ConnectionTypeInterface extends
    * @return string|null
    *   The ID, or NULL if it has not been defined.
    */
-  public function getApiId();
+  public function getApiId(): ?string;
 
   /**
    * Returns the version of the web service endpoint e.g. 22.200.001.
@@ -31,7 +31,7 @@ interface ConnectionTypeInterface extends
    * @return string|null
    *   The version, or NULL if it has not been defined.
    */
-  public function getApiVersion();
+  public function getApiVersion(): ?string;
 
   /**
    * Returns the base namespace of the API client.
@@ -45,7 +45,7 @@ interface ConnectionTypeInterface extends
    * @return string|null
    *   The namespace, or NULL if it has not been defined.
    */
-  public function getBaseNamespace();
+  public function getBaseNamespace(): ?string;
 
   /**
    * Returns the authentication settings.
@@ -56,6 +56,6 @@ interface ConnectionTypeInterface extends
    * @return array|null
    *   The authentication settings, or NULL if no settings have been defined.
    */
-  public function getAuthentication();
+  public function getAuthentication(): ?array;
 
 }
-- 
GitLab