/** * Define the field's range * @param $min Minimal value * @param $max Maximal value * @param $step Step value */ public function setRange($min, $max, $step) { $this->min = $min; $this->max = $max; $this->step = $step; parent::setValue($min); }
/** * Set the value */ public function setValue($value) { parent::setValue((int) $value); }