用户管理
This commit is contained in:
28
extend/catcher/validates/Sometimes.php
Normal file
28
extend/catcher/validates/Sometimes.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace catcher\validates;
|
||||
|
||||
class Sometimes implements ValidateInterface
|
||||
{
|
||||
|
||||
public function type(): string
|
||||
{
|
||||
// TODO: Implement type() method.
|
||||
return 'sometimes';
|
||||
}
|
||||
|
||||
public function verify($value): bool
|
||||
{
|
||||
// TODO: Implement verify() method.
|
||||
if ($value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function message(): string
|
||||
{
|
||||
// TODO: Implement message() method.
|
||||
return '';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user