alexpts/simple-validator

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

Summary

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

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