This field type represents an integer value.
Name | Internal name | Expected input |
---|---|---|
Integer | ezinteger | integer |
Table of contents:
Description
This FieldType stores numeric values which will be provided as integers.
Input expectations
Type | Example |
---|---|
integer |
|
Value object
Properties
The Value class of this field type contains the following properties:
Property | Type | Description |
---|---|---|
$value | int | This property will be used to store the value provided as an integer. |
Constructor
The Integer
\Value
constructor will initialize a new Value object with the value provided. It expects a numeric, integer value.
Hash format
Hash value of this FieldType is simply integer value as a string.
Example:
"8"
String representation
String representation of the FieldType's value will return the integer value as a string.
Example:
"8"
Validation
This FieldType supports
IntegerValueValidator
, defining maximal and minimal float value:
Name | Type | Default value | Description |
---|---|---|---|
minIntegerValue | int | 0 | This setting defines the minimum value this FieldType will allow as input. |
maxIntegerValue | int |
| This setting defines the maximum value this FieldType will allow as input. |
Settings
This FieldType does not support settings.