Skip to content

Commit

Permalink
Add NumberFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Sep 4, 2023
1 parent 8eaf266 commit 588d5b8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Formatters/NumberFormatter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/**
* This file is part of web3.php package.
*
* (c) Kuan-Cheng,Lai <[email protected]>
*
* @author Peter Lai <[email protected]>
* @license MIT
*/

namespace Web3\Formatters;

use InvalidArgumentException;
use Web3\Utils;
use Web3\Formatters\IFormatter;

class NumberFormatter implements IFormatter
{
/**
* format
*
* @param int|float $value
* @return int|float
*/
public static function format($value)
{
return $value;
}
}

0 comments on commit 588d5b8

Please sign in to comment.