for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Admin\Form\Elements;
class Number extends NamedElement
{
protected $type = 'number';
protected $max;
protected $min = 0;
protected $step = 1;
public function getMax()
return $this->max;
}
public function setMax($value)
$this->max = (int)$value;
return $this;
public function getMin()
return $this->min;
public function setMin($value)
$this->min = (int)$value;
public function setStep($value)
$this->step = (int)$value;
public function toArray()
return parent::toArray() + [
'min' => $this->getMin(),
'max' => $this->getMax(),
'step' => $this->step,
];