Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Checked | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
validate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Http\Validation\Rules; |
6 | |
7 | use Respect\Validation\Rules\AbstractRule; |
8 | |
9 | class Checked extends AbstractRule |
10 | { |
11 | use Truthy; |
12 | |
13 | public function validate(mixed $input): bool |
14 | { |
15 | return $this->truthy($input); |
16 | } |
17 | } |