Skip to content
Snippets Groups Projects
Commit 09223923 authored by Dimitris Bozelos's avatar Dimitris Bozelos
Browse files

Issue #3350522 Added return types in connection type

parent b1268f25
No related branches found
No related tags found
No related merge requests found
...@@ -119,28 +119,28 @@ class ConnectionType extends ConfigEntityBase implements ...@@ -119,28 +119,28 @@ class ConnectionType extends ConfigEntityBase implements
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getApiId() { public function getApiId(): ?string {
return $this->api_id; return $this->api_id;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getApiVersion() { public function getApiVersion(): ?string {
return $this->api_version; return $this->api_version;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getBaseNamespace() { public function getBaseNamespace(): ?string {
return $this->base_namespace; return $this->base_namespace;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getAuthentication() { public function getAuthentication(): ?array {
return $this->authentication; return $this->authentication;
} }
......
...@@ -23,7 +23,7 @@ interface ConnectionTypeInterface extends ...@@ -23,7 +23,7 @@ interface ConnectionTypeInterface extends
* @return string|null * @return string|null
* The ID, or NULL if it has not been defined. * 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. * Returns the version of the web service endpoint e.g. 22.200.001.
...@@ -31,7 +31,7 @@ interface ConnectionTypeInterface extends ...@@ -31,7 +31,7 @@ interface ConnectionTypeInterface extends
* @return string|null * @return string|null
* The version, or NULL if it has not been defined. * 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. * Returns the base namespace of the API client.
...@@ -45,7 +45,7 @@ interface ConnectionTypeInterface extends ...@@ -45,7 +45,7 @@ interface ConnectionTypeInterface extends
* @return string|null * @return string|null
* The namespace, or NULL if it has not been defined. * The namespace, or NULL if it has not been defined.
*/ */
public function getBaseNamespace(); public function getBaseNamespace(): ?string;
/** /**
* Returns the authentication settings. * Returns the authentication settings.
...@@ -56,6 +56,6 @@ interface ConnectionTypeInterface extends ...@@ -56,6 +56,6 @@ interface ConnectionTypeInterface extends
* @return array|null * @return array|null
* The authentication settings, or NULL if no settings have been defined. * The authentication settings, or NULL if no settings have been defined.
*/ */
public function getAuthentication(); public function getAuthentication(): ?array;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment