public function setDriver(array $params = [])
    {
        $driverName = !empty($params['driver']) ? $params['driver'] : 'local';

        $this->driver = new $driverName($params);
    }
public function setDriver(array $params = [])
    {
        $driverName = !empty($params['driver']) ? $params['driver'] : 'local';

        $this->driver = new $driverName($params);
    }
public function setDriver ( array $ params = [ ] ) { $ driverName = ! empty ( $ params [ 'driver' ] ) ? $ params [ 'driver' ] : 'local' ; $ this -> driver = new $ driverName ( $ params ) ; }
Set driver usage driver params

@access public

@param array $params Driver params

@return void
Set driver usage driver params