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