| Conditions | 4 |
| Paths | 8 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __construct($label, $attributes) |
||
| 17 | { |
||
| 18 | parent::__construct($label, $attributes); |
||
| 19 | |||
| 20 | $this->attributes->set('type','number'); |
||
|
|
|||
| 21 | |||
| 22 | if(!$this->attributes->has('min')) |
||
| 23 | $this->attributes->set('min','0'); |
||
| 24 | |||
| 25 | if(!$this->attributes->has('max')) |
||
| 26 | $this->attributes->set('max','100'); |
||
| 27 | |||
| 28 | if(!$this->attributes->has('step')) |
||
| 29 | $this->attributes->set('step','1'); |
||
| 30 | } |
||
| 32 | } |