su-mi-lab/mound

View on GitHub
src/Filter/Rules/Number.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Mound\Filter\Rules;

use Mound\Filter\AbstractFilter;

/**
 * Class Number
 * @package Mound\Filter\Rules
 */
class Number extends AbstractFilter
{
    /**
     * @param $value
     * @return bool
     */
    protected function isAllow($value): bool
    {
        return is_numeric($value);
    }
}