BooleanValidator.php
This commit is contained in:
parent
83a514ca65
commit
113c71e27a
19
src/Validators/BooleanValidator.php
Normal file
19
src/Validators/BooleanValidator.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Web3\Validators;
|
||||
|
||||
use Web3\Validators\IValidator;
|
||||
|
||||
class BooleanValidator
|
||||
{
|
||||
/**
|
||||
* validate
|
||||
*
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
*/
|
||||
public static function validate($value)
|
||||
{
|
||||
return is_bool($value);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user