<commit_before><?php
namespace Vision\Validator;

class InputInteger extends ValidatorAbstract 
{
    private $min = null;
    
    private $max = null;
    
    public function setMin($min)
    {
        $this->min = (int) $min;
        return $this;
    }
    
    public function setMax($max)
    {
        $this->max = (int) $max;
        return $this;
    }
    
    public function isValid($value) 
    {
        $options = array();
        
        if (isset($this->min)) {
            $options['options']['min_range'] = $this->min;
        }
        
        if (isset($this->max)) {
            $options['options']['max_range'] = $this->max;
        }
        
        $result = filter_var($value, FILTER_VALIDATE_INT, $options);
        if ($result) {	
            return true;
        }        
        $this->setMessage('Integer', 'Value is not an integer');
        return false;
    }
}<commit_msg>private -> protected<commit_after><?php
namespace Vision\Validator;

class InputInteger extends ValidatorAbstract 
{
    protected $min = null;
    
    protected $max = null;
    
    public function setMin($min)
    {
        $this->min = (int) $min;
        return $this;
    }
    
    public function setMax($max)
    {
        $this->max = (int) $max;
        return $this;
    }
    
    public function isValid($value) 
    {
        $options = array();
        
        if (isset($this->min)) {
            $options['options']['min_range'] = $this->min;
        }
        
        if (isset($this->max)) {
            $options['options']['max_range'] = $this->max;
        }
        
        $result = filter_var($value, FILTER_VALIDATE_INT, $options);
        
        if ($result) {  
            return true;
        }    
        
        $this->setMessage('Integer', 'Value is not an integer');
        
        return false;
    }
}
{'fraction_non_alphanumeric': 0.13878429263044648, 'fraction_numerical': 0.0, 'mean_word_length': 1.6420454545454546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5598911', 'n_tokens_mistral': 557, 'n_tokens_neox': 553, 'n_words': 117}