Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
RegexTrueFalse | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
4 | * @version 1.0 |
5 | */ |
6 | |
7 | namespace pvc\regex\boolean; |
8 | |
9 | use pvc\regex\Regex; |
10 | |
11 | /** |
12 | * Class RegexTrueFalse |
13 | */ |
14 | class RegexTrueFalse extends Regex |
15 | { |
16 | |
17 | /** |
18 | * RegexTrueFalse constructor. |
19 | */ |
20 | public function __construct() |
21 | { |
22 | $pattern = '/^(true|false)$/i'; |
23 | $this->setPattern($pattern); |
24 | $label = 'true / false'; |
25 | $this->setLabel($label); |
26 | } |
27 | |
28 | |
29 | } |