String formatter.

This commit is contained in:
sc0Vu 2018-01-11 15:59:59 +08:00
parent a422d877b0
commit 5288b150f7

View File

@ -0,0 +1,30 @@
<?php
/**
* This file is part of web3.php package.
*
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
*
* @author Peter Lai <alk03073135@gmail.com>
* @license MIT
*/
namespace Web3\Formatters;
use InvalidArgumentException;
use Web3\Utils;
use Web3\Formatters\IFormatter;
class StringFormatter implements IFormatter
{
/**
* format
*
* @param mixed $value
* @return string
*/
public static function format($value)
{
return Utils::toString($value);
}
}