Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class PatternRule extends AbstractRule |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @return string |
||
17 | */ |
||
18 | 78 | public function name() |
|
19 | { |
||
20 | 78 | return 'pattern'; |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param string $parameterName |
||
25 | * @param mixed $value |
||
26 | * @param bool $itemType |
||
27 | * @return string |
||
28 | */ |
||
29 | 78 | public function testConditions($parameterName, $value, $itemType = false) |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $parameterName |
||
36 | * @param mixed $value |
||
37 | * @param bool $itemType |
||
38 | * @return string |
||
39 | */ |
||
40 | 78 | public function exceptionMessageOnTestFailure($parameterName, $value, $itemType = false) |
|
43 | } |
||
44 | } |
||
45 |