From 9968301fb873d71982810db3b207287cc0f166dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0brahim=20G=C3=BCnd=C3=BCz?= Date: Mon, 12 Jan 2015 22:35:31 +0200 Subject: [PATCH] Setter methods now callable as chain in configuration classes. --- src/Paranoia/Configuration/Est.php | 4 ++++ src/Paranoia/Configuration/Gvp.php | 7 +++++++ src/Paranoia/Configuration/Posnet.php | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/src/Paranoia/Configuration/Est.php b/src/Paranoia/Configuration/Est.php index ae19f74..40a88c0 100644 --- a/src/Paranoia/Configuration/Est.php +++ b/src/Paranoia/Configuration/Est.php @@ -31,6 +31,7 @@ class Est extends AbstractConfiguration public function setClientId($clientId) { $this->clientId = $clientId; + return $this; } /** @@ -47,6 +48,7 @@ public function getClientId() public function setMode($mode) { $this->mode = $mode; + return $this; } /** @@ -63,6 +65,7 @@ public function getMode() public function setPassword($password) { $this->password = $password; + return $this; } /** @@ -79,6 +82,7 @@ public function getPassword() public function setUsername($username) { $this->username = $username; + return $this; } /** diff --git a/src/Paranoia/Configuration/Gvp.php b/src/Paranoia/Configuration/Gvp.php index f43a260..50f1470 100644 --- a/src/Paranoia/Configuration/Gvp.php +++ b/src/Paranoia/Configuration/Gvp.php @@ -47,6 +47,7 @@ class Gvp extends AbstractConfiguration public function setAuthorizationPassword($authorizationPassword) { $this->authorizationPassword = $authorizationPassword; + return $this; } /** @@ -63,6 +64,7 @@ public function getAuthorizationPassword() public function setAuthorizationUsername($authorizationUsername) { $this->authorizationUsername = $authorizationUsername; + return $this; } /** @@ -79,6 +81,7 @@ public function getAuthorizationUsername() public function setMerchantId($merchantId) { $this->merchantId = $merchantId; + return $this; } /** @@ -95,6 +98,7 @@ public function getMerchantId() public function setMode($mode) { $this->mode = $mode; + return $this; } /** @@ -111,6 +115,7 @@ public function getMode() public function setRefundPassword($refundPassword) { $this->refundPassword = $refundPassword; + return $this; } /** @@ -127,6 +132,7 @@ public function getRefundPassword() public function setRefundUsername($refundUsername) { $this->refundUsername = $refundUsername; + return $this; } /** @@ -143,6 +149,7 @@ public function getRefundUsername() public function setTerminalId($terminalId) { $this->terminalId = $terminalId; + return $this; } /** diff --git a/src/Paranoia/Configuration/Posnet.php b/src/Paranoia/Configuration/Posnet.php index ec6e6cb..f0baac5 100644 --- a/src/Paranoia/Configuration/Posnet.php +++ b/src/Paranoia/Configuration/Posnet.php @@ -32,6 +32,7 @@ class Posnet extends AbstractConfiguration public function setClientId($clientId) { $this->clientId = $clientId; + return $this; } /** @@ -48,6 +49,7 @@ public function getClientId() public function setPassword($password) { $this->password = $password; + return $this; } /** @@ -64,6 +66,7 @@ public function getPassword() public function setTerminalId($terminalId) { $this->terminalId = $terminalId; + return $this; } /** @@ -80,6 +83,7 @@ public function getTerminalId() public function setUsername($username) { $this->username = $username; + return $this; } /**