Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
BoolTester | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
testValue | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
5 | */ |
6 | declare(strict_types=1); |
7 | |
8 | namespace pvc\validator\val_tester\bool; |
9 | |
10 | use pvc\interfaces\validator\ValTesterInterface; |
11 | |
12 | /** |
13 | * Class BoolTester |
14 | * @implements ValTesterInterface<mixed> |
15 | */ |
16 | class BoolTester implements ValTesterInterface |
17 | { |
18 | /** |
19 | * @param mixed|null $value |
20 | * @return bool |
21 | */ |
22 | public function testValue($value): bool |
23 | { |
24 | return is_bool($value); |
25 | } |
26 | } |