| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function getFieldValidationOptions() |
||
| 38 | { |
||
| 39 | $min = ($this->getSetting('MinValue')) ? $this->getSetting('MinValue') : ''; |
||
| 40 | $max = ($this->getSetting('MaxValue')) ? $this->getSetting('MaxValue') : ''; |
||
| 41 | |||
| 42 | return [ |
||
| 43 | new NumericField($this->getSettingName('MinValue'), _t('Moo_EditableField.MINVALUE', 'Min Value'), $min), |
||
| 44 | new NumericField($this->getSettingName('MaxValue'), _t('Moo_EditableField.MAXVALUE', 'Max Value'), $max), |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |