alexpts/simple-validator

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare(strict_types=1);

namespace PTS\Validator\Validators;

class InArrayValidator
{
    public function __invoke($value, array $allow): bool
    {
        return in_array($value, $allow, true);
    }
}