| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 16 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 22 | 3 | public function init() |
|
| 23 | { |
||
| 24 | 3 | $this->add([ |
|
| 25 | 3 | 'type' => Number::class, |
|
| 26 | 3 | 'name' => 'amount', |
|
| 27 | 'options' => [ |
||
| 28 | 3 | 'label' => 'Amount', |
|
| 29 | 3 | ], |
|
| 30 | 'attributes' => [ |
||
| 31 | 3 | 'step' => '0.01', |
|
| 32 | 3 | ], |
|
| 33 | 3 | ]); |
|
| 34 | |||
| 35 | 3 | $this->add([ |
|
| 36 | 3 | 'type' => CurrencySelect::class, |
|
| 37 | 3 | 'name' => 'currency', |
|
| 38 | 'options' => [ |
||
| 39 | 3 | 'label' => 'Currency', |
|
| 40 | 3 | ], |
|
| 41 | 3 | ]); |
|
| 42 | 3 | } |
|
| 43 | |||
| 52 |