1 | <?php |
||
34 | class Redis extends RealRedis implements CacheInterface |
||
35 | { |
||
36 | /** |
||
37 | * constructor with the connection to Redis |
||
38 | * |
||
39 | * @access public |
||
40 | * @param $oConf |
||
41 | * @throws \Exception |
||
42 | * @internal param string $sName name of the session |
||
43 | * @internal param int $iFlags flags |
||
44 | * @internal param int $iTimeout expiration of cache |
||
45 | */ |
||
46 | public function __construct($oConf) |
||
56 | |||
57 | /** |
||
58 | * get a value |
||
59 | * |
||
60 | * @access public |
||
61 | * @param string $sName name of the session |
||
62 | * @param int $iFlags flags |
||
63 | * @param int $iTimeout expiration of cache |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function get(string $sName, int &$iFlags = null, int $iTimeout = 0) |
||
70 | |||
71 | /** |
||
72 | * set a value |
||
73 | * |
||
74 | * @access public |
||
75 | * @param string $sName name of the session |
||
76 | * @param mixed $mValue value of this sesion var |
||
77 | * @param int $iFlag unused |
||
78 | * @param int $iExpire expiration of cache |
||
79 | * @return \Venus\lib\Cache\Apc |
||
80 | */ |
||
81 | public function set(string $sName, $mValue, int $iFlag = 0, int $iExpire = false) |
||
92 | |||
93 | /** |
||
94 | * flush the cache |
||
95 | * |
||
96 | * @access public |
||
97 | * @return mixed |
||
98 | */ |
||
99 | public function flush() |
||
103 | |||
104 | /** |
||
105 | * delete a value |
||
106 | * |
||
107 | * @access public |
||
108 | * @param string $sName name of the session |
||
109 | * @return mixed |
||
110 | */ |
||
111 | public function delete(string $sName) |
||
115 | |||
116 | /** |
||
117 | * close the redis connecction |
||
118 | * |
||
119 | * @access public |
||
120 | * @return mixed |
||
121 | */ |
||
122 | public function __sleep() |
||
126 | |||
127 | /** |
||
128 | * add |
||
129 | * |
||
130 | * @access public |
||
131 | * @param string $sName name of the session |
||
132 | * @param mixed $mValue value of this sesion var |
||
133 | * @param int $iFlag unused |
||
134 | * @param int $iExpire expiration of cache |
||
135 | * @return mixed |
||
136 | */ |
||
137 | public function add(string $sName, $mValue, int $iExpire = false) |
||
141 | } |
||
142 |
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.