public function setConnections(array $connections)
    {
        $this->connections = array();
        foreach ($connections as $name => $connection) {
            $this->setConnection($name, $connection);
        }
    }
public function setConnections(array $connections)
    {
        $this->connections = array();
        foreach ($connections as $name => $connection) {
            $this->setConnection($name, $connection);
        }
    }
public function setConnections ( array $ connections ) { $ this -> connections = array ( ) ; foreach ( $ connections as $ name => $ connection ) { $ this -> setConnection ( $ name , $ connection ) ; } }
Set the connections.

@param array $connections An array of connections.

@api
Set the connections .