1 | <?php |
||
19 | abstract class InternalStoreAbstract |
||
20 | { |
||
21 | private $internalValues = []; |
||
22 | |||
23 | /** |
||
24 | * @param $key |
||
25 | * |
||
26 | * @return |
||
27 | */ |
||
28 | protected function hasInternalValue($key) |
||
32 | |||
33 | /** |
||
34 | * @param $key |
||
35 | * |
||
36 | * @return |
||
37 | */ |
||
38 | protected function getInternalValue($key) |
||
42 | |||
43 | /** |
||
44 | * @param $key |
||
45 | * |
||
46 | * @return |
||
47 | */ |
||
48 | protected function deleteInternalValue($key) |
||
52 | |||
53 | /** |
||
54 | * @param $key |
||
55 | * @param $value |
||
56 | * |
||
57 | * @return |
||
58 | */ |
||
59 | protected function setInternalValue($key, $value) |
||
63 | |||
64 | /** |
||
65 | * @param $key |
||
66 | * @param $value |
||
67 | * |
||
68 | * @return |
||
69 | */ |
||
70 | |||
71 | /** |
||
72 | * @param $internalValues |
||
73 | * |
||
74 | * @return |
||
75 | */ |
||
76 | protected function setInternalValues(array $internalValues) |
||
80 | |||
81 | /** |
||
82 | * @param $key |
||
83 | * |
||
84 | * @return |
||
85 | */ |
||
86 | |||
87 | /** |
||
88 | * @return |
||
89 | */ |
||
90 | protected function getInternalValues() |
||
94 | |||
95 | /** |
||
96 | * @return |
||
97 | */ |
||
98 | protected function addInternalValues() |
||
102 | } |
||
103 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.