public function determineDriver($collectionCount)
    {

        $determinedDriver = 'native';

        ksort($this->sortThresholds, SORT_NUMERIC);

        foreach ($this->sortThresholds as $threshold => $driver) {
            if ($collectionCount <= $threshold) {
                $determinedDriver = $driver;
                break;
            }
        }

        return $determinedDriver;
    }
public function determineDriver($collectionCount)
    {

        $determinedDriver = 'native';

        ksort($this->sortThresholds, SORT_NUMERIC);

        foreach ($this->sortThresholds as $threshold => $driver) {
            if ($collectionCount <= $threshold) {
                $determinedDriver = $driver;
                break;
            }
        }

        return $determinedDriver;
    }
public function determineDriver ( $ collectionCount ) { $ determinedDriver = 'native' ; ksort ( $ this -> sortThresholds , SORT_NUMERIC ) ; foreach ( $ this -> sortThresholds as $ threshold => $ driver ) { if ( $ collectionCount <= $ threshold ) { $ determinedDriver = $ driver ; break ; } } return $ determinedDriver ; }
Determines the driver to use based on a collection's size

@param  int $collectionCount The size of the collection

@return string The driver to use
Determines the driver to use based on a collection s size