add integer format
This commit is contained in:
14
src/formats/IntegerFormat.php
Normal file
14
src/formats/IntegerFormat.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user