| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 2 | public function init(): void |
|
| 13 | { |
||
| 14 | 2 | parent::init(); |
|
| 15 | 2 | $this->setAttribute('type', 'number'); |
|
| 16 | 2 | $this->setAttribute('step', '0.01'); |
|
| 17 | 2 | $this->setAttribute('placeholder', 'Enter a numeric value..'); |
|
| 18 | 2 | $toFloatValidator = new FloatValidator(); |
|
| 19 | 2 | $this->addValidator($toFloatValidator); |
|
| 20 | } |
||
| 22 |