28 ValidationFactory $validation_factory,
29 TransformationFactory $transformation_factory,
33 parent::__construct($data_factory, $validation_factory, $transformation_factory, $label, $byline);
35 $this->setAdditionalTransformation(
36 $this->transformation_factory->custom(
38 if (trim($v) ===
'') {
48 $this->setAdditionalConstraint(
49 $this->validation_factory->or(
51 $this->validation_factory->isNumeric(),
52 $this->validation_factory->isNull()
64 return is_numeric($value) || $value ===
"" || $value === null;
73 return $this->validation_factory->isNumeric();