add integer format

This commit is contained in:
stasbilay02 committed 2024-08-13 14:30:00 +03:00
1 parent 19e994ef38
commit 96b249eb51
4 files changed
+25 -8

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
namespace Itguild\Tables\formats;
use Itguild\Tables\formats\BaseFormat;
class IntegerFormat extends BaseFormat
{
static function fetch(?string $data, string $options = "")
{
return intval($data);
}
}