Version switch for SolrClient object

$client = new SolrClient($options, SolrClient::VERSION_4); for Solor4