Location\Coordinate::isNumericInBounds PHP 메소드

isNumericInBounds() 보호된 메소드

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
리턴 boolean
    protected function isNumericInBounds($value, $lower, $upper)
    {
        if (!is_numeric($value)) {
            return false;
        }
        if ($value < $lower || $value > $upper) {
            return false;
        }
        return true;
    }