Skip to content

Commit 408130c

Browse files
function get all types
1 parent 0e82a37 commit 408130c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/Enums/FieldType.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,22 @@ class FieldType
1616
public const FILE = 'File';
1717
public const JSON = 'Json';
1818
public const ARRAY = 'Array';
19+
20+
public static function getAllTypes()
21+
{
22+
return [
23+
self::BOOLEAN,
24+
self::CHECK,
25+
self::TEXT,
26+
self::NUMBER,
27+
self::SINGLE,
28+
self::MULTIPLE,
29+
self::DATE,
30+
self::TIME,
31+
self::DATETIME,
32+
self::FILE,
33+
self::JSON,
34+
self::ARRAY,
35+
];
36+
}
1937
}

0 commit comments

Comments
 (0)