protected function createValueFromInput($inputValue) { if (is_numeric($inputValue)) { $inputValue = (double) $inputValue; $inputValue = new Value($inputValue); } return $inputValue; }