1 | <?php |
||
15 | class File extends \erdiko\core\datasource\File implements CacheInterface |
||
16 | { |
||
17 | /** Constructor */ |
||
18 | public function __construct($cacheDir = null) |
||
25 | |||
26 | /** |
||
27 | * Get Key Code |
||
28 | * |
||
29 | * @param string $key |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getKeyCode($key) |
||
36 | |||
37 | /** |
||
38 | * Put Key |
||
39 | * |
||
40 | * @param mixed $key |
||
41 | * @param mixed $data |
||
42 | */ |
||
43 | public function put($key, $data) |
||
49 | |||
50 | /** |
||
51 | * Get Key |
||
52 | * |
||
53 | * @param string @key |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function get($key) |
||
68 | |||
69 | /** |
||
70 | * Delete a key |
||
71 | * |
||
72 | * @param string @key |
||
73 | * @note path is only for compatibility, do not use |
||
74 | */ |
||
75 | public function delete($key, $path = null) |
||
80 | |||
81 | /** |
||
82 | * Delete all keys |
||
83 | */ |
||
84 | public function clear() |
||
93 | |||
94 | /** |
||
95 | * Check if a key exists |
||
96 | * |
||
97 | * @param mixed $key |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function has($key) |
||
105 | } |
||
106 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.