public function setMax(int $value)
    {
        $this->max = $value;

        $this->addValidationRule('max:' . $value);

        return $this;
    }
public function setMax(int $value)
    {
        $this->max = $value;

        $this->addValidationRule('max:' . $value);

        return $this;
    }
public function setMax ( int $ value ) { $ this -> max = $ value ; $ this -> addValidationRule ( 'max:' . $ value ) ; return $ this ; }
Set maximum number.

@param int $value

@return $this
Set maximum number .