Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class HTMLPurifier_StringHash extends ArrayObject |
||
12 | { |
||
13 | /** |
||
14 | * @type array |
||
15 | */ |
||
16 | protected $accessed = array(); |
||
17 | |||
18 | /** |
||
19 | * Retrieves a value, and logs the access. |
||
20 | * @param mixed $index |
||
21 | * @return mixed |
||
22 | */ |
||
23 | #[\ReturnTypeWillChange] |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Returns a lookup array of all array indexes that have been accessed. |
||
32 | * @return array in form array($index => true). |
||
33 | */ |
||
34 | public function getAccessed() |
||
35 | { |
||
36 | return $this->accessed; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Resets the access array. |
||
41 | */ |
||
42 | public function resetAccessed() |
||
45 | } |
||
46 | } |
||
49 |