| 1 | <?php |
||
| 7 | final class PHPMatcher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Matcher|null |
||
| 11 | */ |
||
| 12 | private static $matcher; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param $value |
||
| 16 | * @param $pattern |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public static function match($value, $pattern) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return null|string |
||
| 28 | */ |
||
| 29 | public static function getError() |
||
| 35 | |||
| 36 | private static function createMatcher() |
||
| 47 | } |