Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class FieldOperationCache extends AbstractFieldOperationCache implements FieldOperationCacheInterface, ArrayAccess, JsonSerializable |
||
11 | { |
||
12 | use ImmutableObjectTrait; |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | */ |
||
17 | 51 | public function __construct( |
|
18 | bool $requestVarPresent, |
||
19 | $sanitizedInputValue, |
||
20 | bool $updateAttempted, |
||
21 | bool $updateSuccessful, |
||
22 | array $ruleViolations |
||
23 | ) { |
||
24 | 51 | $this->results['request_var_present'] = $requestVarPresent; |
|
25 | 51 | $this->results['sanitized_input_value'] = $sanitizedInputValue; |
|
26 | 51 | $this->results['update_attempted'] = $updateAttempted; |
|
27 | 51 | $this->results['update_successful'] = $updateSuccessful; |
|
28 | 51 | $this->results['rule_violations'] = $ruleViolations; |
|
29 | 51 | } |
|
30 | |||
31 | /** |
||
32 | * |
||
33 | */ |
||
34 | 6 | public function toArray() |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | */ |
||
42 | 3 | public function offsetExists($offset) |
|
43 | { |
||
44 | 3 | return isset($this->results[$offset]); |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | */ |
||
50 | 3 | public function offsetGet($offset) |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | */ |
||
58 | 6 | public function jsonSerialize() |
|
61 | } |
||
62 | } |
||
63 |