Skip to content

Commit

Permalink
getSessionInfo --> getSessionData
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Apr 27, 2016
1 parent 55cd02f commit 64faa9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
22 changes: 11 additions & 11 deletions src/Amadeus/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Amadeus/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ public function testCanGetSessionInfo()

$client = new Client($par);

$actual = $client->getSessionInfo();
$actual = $client->getSessionData();

$this->assertEquals($mockedSession, $actual);
}
Expand Down

0 comments on commit 64faa9e

Please sign in to comment.