final protected function validateInt(string $name, $value, array $allowed) : bool
    {
        if (true === in_array('int', $allowed)) {
            if (true === is_int($value)) {
                if ($value >= 0) {
                    return true;
                } else {
                    throw new \InvalidArgumentException('Int value for '.$name.' is too low');
                }
            }
        }

        return false;
    }
final protected function validateInt(string $name, $value, array $allowed) : bool
    {
        if (true === in_array('int', $allowed)) {
            if (true === is_int($value)) {
                if ($value >= 0) {
                    return true;
                } else {
                    throw new \InvalidArgumentException('Int value for '.$name.' is too low');
                }
            }
        }

        return false;
    }
final protected function validateInt ( string $ name , $ value , array $ allowed ) : bool { if ( true === in_array ( 'int' , $ allowed ) ) { if ( true === is_int ( $ value ) ) { if ( $ value >= 0 ) { return true ; } else { throw new \ InvalidArgumentException ( 'Int value for ' . $ name . ' is too low' ) ; } } } return false ; }
Validates an int setting.

@param string $name    The name of the setting we are validating.
@param mixed  $value   The value we are validating.
@param array  $allowed Which items are allowed.

@throws \InvalidArgumentException If the data is inaccurate/incorrect.
@return bool True if validated, false if not
Validates an int setting .