1 | <?php |
||
32 | class File implements CacheInterface |
||
33 | { |
||
34 | /** |
||
35 | * var containe this folder of cache |
||
36 | * |
||
37 | * @access private |
||
38 | * @var string |
||
39 | */ |
||
40 | private $_sFolder = ''; |
||
41 | |||
42 | /** |
||
43 | * constructor |
||
44 | * |
||
45 | * @access public |
||
46 | */ |
||
47 | public function __construct() |
||
51 | |||
52 | /** |
||
53 | * set a value |
||
54 | * |
||
55 | * @access public |
||
56 | * @param string $sName name of the session |
||
57 | * @param mixed $mValue value of this sesion var |
||
58 | * @param int $iFlag flags |
||
59 | * @param int $iExpire expiration of cache |
||
60 | * @return \Venus\lib\Cache\File |
||
61 | */ |
||
62 | public function set(string $sName, $mValue, int $iFlag, int $iExpire) |
||
67 | |||
68 | /** |
||
69 | * get a value |
||
70 | * |
||
71 | * @access public |
||
72 | * @param string $sName name of the session |
||
73 | * @param int $iFlags flags |
||
74 | * @param int $iTimeout expiration of cache |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function get(string $sName, int &$iFlags = null, int $iTimeout = 0) |
||
93 | |||
94 | /** |
||
95 | * delete a value |
||
96 | * |
||
97 | * @access public |
||
98 | * @param string $sName name of the session |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function delete(string $sName) |
||
105 | |||
106 | /** |
||
107 | * flush the cache |
||
108 | * |
||
109 | * @access public |
||
110 | * @param string $sName name of the session |
||
|
|||
111 | * @return mixed |
||
112 | */ |
||
113 | public function flush() |
||
117 | |||
118 | /** |
||
119 | * |
||
120 | * |
||
121 | * @access public |
||
122 | * @param string $sName name of the session |
||
123 | * @return mixed |
||
124 | */ |
||
125 | private function _getSubDirectory($sName) |
||
134 | |||
135 | /** |
||
136 | * remove a directory recursivly |
||
137 | * |
||
138 | * @access private |
||
139 | * @param string $sName nom du répertoire |
||
140 | * @return void |
||
141 | */ |
||
142 | private function _removeDirectory($sName) |
||
155 | } |
||
156 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.