Location\Coordinate::isNumericInBounds PHP Method

isNumericInBounds() protected method

Checks if the given value is (1) numeric, and (2) between lower and upper bounds (including the bounds values).
protected isNumericInBounds ( float $value, float $lower, float $upper ) : boolean
$value float
$lower float
$upper float
return boolean
    protected function isNumericInBounds($value, $lower, $upper)
    {
        if (!is_numeric($value)) {
            return false;
        }
        if ($value < $lower || $value > $upper) {
            return false;
        }
        return true;
    }