Skip to content

Commit

Permalink
Merge pull request #28 from redbitcz/endpoint-constructor
Browse files Browse the repository at this point in the history
Add EndpointUrl to constructor
  • Loading branch information
jakubboucek committed May 13, 2020
2 parents 4517f2d + 750255a commit 93d8131
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/VyfakturujAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ class VyfakturujAPI
/**
* @param string $login
* @param string $apiHash
* @param string|null $endpointUrl
* @throws VyfakturujAPIException
*/
public function __construct($login, $apiHash)
public function __construct($login, $apiHash, $endpointUrl = null)
{
$this->login = $login;
$this->apiHash = $apiHash;
if($endpointUrl !== null) {
$this->setEndpointUrl($endpointUrl);
}
}


Expand Down

0 comments on commit 93d8131

Please sign in to comment.