Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
24 | class CaseInsensitiveEquals extends Matcher |
||
25 | { |
||
26 | 18 | public function __construct(StringValue $checkValue) |
|
27 | { |
||
28 | 18 | parent::__construct($checkValue); |
|
29 | 18 | } |
|
30 | |||
31 | public function matches($value): bool |
||
32 | { |
||
33 | return strtolower($value) === strtolower($this->getCheckValue()->get()); |
||
34 | } |
||
35 | |||
36 | 18 | public function getName(): string |
|
39 | } |
||
40 | } |
||
41 |