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