Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
21 | class MatchersEnum |
||
22 | { |
||
23 | public const MATCHES = 'matches'; |
||
24 | public const EQUAL_TO = 'isEqualTo'; |
||
25 | public const SAME_STRING = 'isSameString'; |
||
26 | public const CONTAINS = 'contains'; |
||
27 | public const SAME_JSON = 'isSameJsonObject'; |
||
28 | |||
29 | private const VALID_MATCHERS = [ |
||
30 | self::CONTAINS, |
||
31 | self::EQUAL_TO, |
||
32 | self::MATCHES, |
||
33 | self::SAME_JSON, |
||
34 | self::SAME_STRING, |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * @param string $matcherName |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | public static function isValidMatcher($matcherName) |
||
47 |