public function __construct(CurlClient $client = null) { $this->client = $client ?: new CurlClient(); }