Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class FieldOperationCacheBuilder extends AbstractFieldOperationCache implements FieldOperationCacheInterface |
||
8 | { |
||
9 | /** |
||
10 | * |
||
11 | */ |
||
12 | 3 | public function withRequestVarPresent(bool $result) |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | */ |
||
22 | 27 | public function withSanitizedInputValue($value) |
|
23 | { |
||
24 | 27 | $this->results['sanitized_input_value'] = $value; |
|
25 | |||
26 | 27 | return $this; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | */ |
||
32 | 9 | public function withUpdateAttempted(bool $result) |
|
33 | { |
||
34 | 9 | $this->results['update_attempted'] = $result; |
|
35 | |||
36 | 9 | return $this; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | */ |
||
42 | 15 | public function withUpdateSuccessful(bool $result) |
|
43 | { |
||
44 | 15 | $this->results['update_successful'] = $result; |
|
45 | |||
46 | 15 | return $this; |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | */ |
||
52 | 18 | public function withRuleViolations(array $violations) |
|
55 | 18 | } |
|
56 | } |
||
57 |