From 64faa9e0f3ccbbdc407d2f83b9f4cc955316bdf1 Mon Sep 17 00:00:00 2001 From: dieter Date: Wed, 27 Apr 2016 10:56:29 +0200 Subject: [PATCH] getSessionInfo --> getSessionData --- CHANGELOG.md | 6 +++--- src/Amadeus/Client.php | 22 +++++++++++----------- tests/Amadeus/ClientTest.php | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9df4bd700..00047359d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # 2016-04 -Added support for providing custom `\SoapClient` options (https://github.com/amabnl/amadeus-ws-client/issues/4) -Implemented Amadeus SoapHeader 2 support (https://github.com/amabnl/amadeus-ws-client/issues/3) -Changed all references 'tatoo' to 'tattoo' for consistency (https://github.com/amabnl/amadeus-ws-client/issues/1) +* Added support for providing custom `\SoapClient` options (https://github.com/amabnl/amadeus-ws-client/issues/4) +* Implemented Amadeus SoapHeader 2 support (https://github.com/amabnl/amadeus-ws-client/issues/3) +* Changed all references 'tatoo' to 'tattoo' for consistency (https://github.com/amabnl/amadeus-ws-client/issues/1) # UNSTABLE diff --git a/src/Amadeus/Client.php b/src/Amadeus/Client.php index 2aab39114..15540a227 100644 --- a/src/Amadeus/Client.php +++ b/src/Amadeus/Client.php @@ -131,6 +131,16 @@ public function getLastRequest() return $this->sessionHandler->getLastRequest(); } + /** + * Get the last raw XML message that was received + * + * @return string|null + */ + public function getLastResponse() + { + return $this->sessionHandler->getLastResponse(); + } + /** * Get session information for authenticated session * @@ -140,21 +150,11 @@ public function getLastRequest() * * @return array|null */ - public function getSessionInfo() + public function getSessionData() { return $this->sessionHandler->getSessionData(); } - /** - * Get the last raw XML message that was received - * - * @return string|null - */ - public function getLastResponse() - { - return $this->sessionHandler->getLastResponse(); - } - /** * Restore a previously used session * diff --git a/tests/Amadeus/ClientTest.php b/tests/Amadeus/ClientTest.php index c52829d41..f6171cef2 100644 --- a/tests/Amadeus/ClientTest.php +++ b/tests/Amadeus/ClientTest.php @@ -1483,7 +1483,7 @@ public function testCanGetSessionInfo() $client = new Client($par); - $actual = $client->getSessionInfo(); + $actual = $client->getSessionData(); $this->assertEquals($mockedSession, $actual); }