for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeKoala\FormElements;
/**
* Format numbers as integers
* "integer": {
* alias: "numeric",
* inputmode: "numeric",
* digits: 0
* },
*/
class InputMaskIntegerField extends InputMaskNumericField
{
public function __construct($name, $title = null, $value = null)
parent::__construct($name, $title, $value);
$this->setAlias(self::ALIAS_INTEGER);
}
public function setValue($value, $data = null)
return parent::setValue($value, $data);
* Create a new class for this field
public function performReadonlyTransformation()
$field = $this->castedCopy(NumericReadonlyField::class);
return $field;