improve code
This commit is contained in:
parent
9b14bf8235
commit
2c3505ee82
@ -27,23 +27,16 @@ use GuzzleHttp\ClientInterface;
|
|||||||
|
|
||||||
class Klicktipp
|
class Klicktipp
|
||||||
{
|
{
|
||||||
protected string $client_key;
|
|
||||||
|
|
||||||
protected string $secret_key;
|
|
||||||
|
|
||||||
protected ?Connection $connection = null;
|
protected ?Connection $connection = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws BaseException
|
* @throws BaseException
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
string $client_key,
|
protected string $client_key,
|
||||||
string $secret_key,
|
protected string $secret_key,
|
||||||
ClientInterface $client = null
|
ClientInterface $client = null
|
||||||
) {
|
) {
|
||||||
$this->client_key = $client_key;
|
|
||||||
$this->secret_key = $secret_key;
|
|
||||||
|
|
||||||
if ($client) {
|
if ($client) {
|
||||||
$this->getConnection()->setClient($client);
|
$this->getConnection()->setClient($client);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user