improve code

This commit is contained in:
Daniel Seifert 2025-01-07 14:02:27 +01:00
parent 9b14bf8235
commit 2c3505ee82

View File

@ -27,23 +27,16 @@ use GuzzleHttp\ClientInterface;
class Klicktipp
{
protected string $client_key;
protected string $secret_key;
protected ?Connection $connection = null;
/**
* @throws BaseException
*/
public function __construct(
string $client_key,
string $secret_key,
protected string $client_key,
protected string $secret_key,
ClientInterface $client = null
) {
$this->client_key = $client_key;
$this->secret_key = $secret_key;
if ($client) {
$this->getConnection()->setClient($client);
}