<?php

namespace ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Fields;

/**
 * Number Field controler
 *
 * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
 */
class Number extends BaseField
{
    protected $id   = 'number';
    protected $name = 'number';
    protected $maxValue = null;
    protected $minValue = null;

    public function __construct($id = null, $minValue = null, $maxValue = null)
    {
        parent::__construct($id);

        $this->minValue = $minValue;
        $this->maxValue = $maxValue;
        
        $this->isIntNumberBetween($this->minValue, $this->maxValue);
    }

    public function getMinValue()
    {
        return $this->minValue;
    }

    public function getMaxValue()
    {
        return $this->maxValue;
    }
}
