Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait TRule |
||
12 | { |
||
13 | /** @var mixed|null */ |
||
14 | protected $againstValue = null; |
||
15 | protected string $errorText = ''; |
||
16 | |||
17 | /** |
||
18 | * @param mixed|null $againstValue |
||
19 | */ |
||
20 | 151 | public function setAgainstValue($againstValue): void |
|
23 | 124 | } |
|
24 | |||
25 | /** |
||
26 | * @param mixed|null $againstValue |
||
27 | * @return mixed|null |
||
28 | */ |
||
29 | 15 | protected function checkValue($againstValue) |
|
30 | { |
||
31 | 15 | return $againstValue; |
|
32 | } |
||
33 | |||
34 | 9 | public function setErrorText(string $errorText): void |
|
37 | 9 | } |
|
38 | } |
||
39 |