function __construct($config = [], $client = null) { $this->client = $client ?: new Client($config); }