JaguarJack 94c430f491 update
2020-11-29 09:29:14 +08:00

31 lines
522 B
PHP

<?php
declare(strict_types=1);
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 '';
}
}