public function __construct(Http\IClient $client = NULL) { $this->client = $client ?: Helpers::createDefaultClient(); }