for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ticketpark\SaferpayJson\Request;
use GuzzleHttp\Client;
final class RequestConfig
{
/**
* @var string
*/
private $apiKey;
private $apiSecret;
private $customerId;
* @var bool
private $test;
* @var \GuzzleHttp\Client
private $client;
public function __construct(string $apiKey, string $apiSecret, string $customerId, bool $test = false)
$this->apiKey = $apiKey;
$this->apiSecret = $apiSecret;
$this->customerId = $customerId;
$this->test = $test;
}
public function getApiKey(): string
return $this->apiKey;
public function getApiSecret(): string
return $this->apiSecret;
public function getCustomerId(): string
return $this->customerId;
public function isTest(): bool
return $this->test;
public function setClient(Client $client): self
$this->client = $client;
return $this;
public function getClient(): Client
if (null === $this->client) {
return new Client();
return $this->client;