alexpts/simple-validator

View on GitHub
src/PTS/Validator/Validators/BetweenFloatValidator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace PTS\Validator\Validators;

class BetweenFloatValidator
{
    public function __invoke($value, float $min, float $max): bool
    {
        return $value <= $max && $value >= $min;
    }
}