Skip to content

Commit

Permalink
Add getters, fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Mar 11, 2017
1 parent 06962d8 commit 4c64be1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/GusApi/Adapter/Soap/SoapAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public function __construct($baseUrl, $address)
]);
}

/**
* @return SoapClient
*/
public function getClient()
{
return $this->client;
}

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -160,7 +168,7 @@ protected function clearHeader()
* @param $namespace
* @param $name
* @param null $data
* @param bool|false $mustUnderstand
* @param bool $mustUnderstand
* @return \SoapHeader
*/
protected function setHeader($namespace, $name, $data = null, $mustUnderstand = false)
Expand Down
16 changes: 16 additions & 0 deletions src/GusApi/GusApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ public function __construct($userKey, AdapterInterface $adapter = null)
$this->adapter = $adapter;
}

/**
* @return string
*/
public function getUserKey()
{
return $this->userKey;
}

/**
* @return AdapterInterface
*/
public function getAdapter()
{
return $this->adapter;
}

/**
* Login in to regon server
*
Expand Down

0 comments on commit 4c64be1

Please sign in to comment.