From bfb60422e0d087b2e32e4684de2acf5bfaf410a7 Mon Sep 17 00:00:00 2001 From: HeleneC Date: Sat, 5 Nov 2016 14:52:27 +0100 Subject: [PATCH] remove @return php-doc on constructors --- src/Connection.php | 3 +-- src/Response/GetListIDResponse.php | 3 --- src/Response/GetListsResponse.php | 3 --- src/Response/GetSystemStatusResponse.php | 9 +++------ 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index 6cf9b57..b452f3d 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -47,7 +47,6 @@ class Connection * @param string $header * * @throws InvalidArgumentException - * @return void */ public function __construct($client = 'SoapClient', $header = 'SoapHeader') { @@ -62,7 +61,7 @@ public function __construct($client = 'SoapClient', $header = 'SoapHeader') return $result; }; - $this->client = $load($client, self::CLASS_SOAPCLIENT); + $this->client = $load($client, self::CLASS_SOAPCLIENT); $this->header = $load($header, self::CLASS_SOAPHEADER); $this->options['classmap'] = [ diff --git a/src/Response/GetListIDResponse.php b/src/Response/GetListIDResponse.php index dbecc7f..280c54e 100644 --- a/src/Response/GetListIDResponse.php +++ b/src/Response/GetListIDResponse.php @@ -28,9 +28,6 @@ class GetListIDResponse extends Response */ protected $id; - /** - * @return void - */ public function __construct() { $this->GetListIDResult = 0; diff --git a/src/Response/GetListsResponse.php b/src/Response/GetListsResponse.php index 78ada16..0dc0c95 100644 --- a/src/Response/GetListsResponse.php +++ b/src/Response/GetListsResponse.php @@ -29,9 +29,6 @@ class GetListsResponse extends Response */ protected $lists; - /** - * @return void - */ public function __construct() { $this->GetListsResult = Response::ERROR_NORESULT; diff --git a/src/Response/GetSystemStatusResponse.php b/src/Response/GetSystemStatusResponse.php index a4e304e..c6f26db 100644 --- a/src/Response/GetSystemStatusResponse.php +++ b/src/Response/GetSystemStatusResponse.php @@ -23,9 +23,6 @@ class GetSystemStatusResponse extends Response */ protected $GetSystemStatusResult; - /** - * @return void - */ public function __construct() { $this->GetSystemStatusResult = 'error (unknown)'; @@ -36,14 +33,14 @@ public function __construct() */ public function getCode() { - /* This is supposed to always returns something. + /* This is supposed to always returns something. So it's always successful*/ return Response::SUCCESSFUL; } /** * - * @return string System status + * @return string System status */ public function getStatus() { @@ -53,7 +50,7 @@ public function getStatus() /** * - * @return string Provider API version + * @return string Provider API version */ public function getVersion() {