1<?php 2 3namespace Elastica\Connection\Strategy; 4 5use Elastica\Connection; 6 7/** 8 * Description of RoundRobin. 9 * 10 * @author chabior 11 */ 12class RoundRobin extends Simple 13{ 14 /** 15 * {@inheritdoc} 16 */ 17 public function getConnection(array $connections): Connection 18 { 19 \shuffle($connections); 20 21 return parent::getConnection($connections); 22 } 23} 24