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
/**
* {@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;
}
......
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment