Rename IVlaidators to IValidator.
This commit is contained in:
parent
e5698c99ed
commit
200f8cbb78
@ -11,7 +11,7 @@
|
||||
|
||||
namespace Web3\Validators;
|
||||
|
||||
interface IValidators
|
||||
interface IValidator
|
||||
{
|
||||
/**
|
||||
* validate
|
@ -12,8 +12,9 @@
|
||||
namespace Web3\Validators;
|
||||
|
||||
use Web3\Validators\IValidator;
|
||||
use Web3\Utils;
|
||||
|
||||
class TagValidator
|
||||
class TagValidator implements IValidator
|
||||
{
|
||||
/**
|
||||
* validate
|
||||
@ -23,6 +24,7 @@ class TagValidator
|
||||
*/
|
||||
public static function validate($value)
|
||||
{
|
||||
$value = Utils::toString($value);
|
||||
$tags = [
|
||||
'latest', 'earliest', 'pending'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user