1 | <?php |
||
6 | class Xhgui_Saver_File implements Xhgui_Saver_Interface |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $file; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $path; |
||
17 | |||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $separateMeta; |
||
22 | |||
23 | /** |
||
24 | * Xhgui_Saver_File constructor. |
||
25 | * @param string $path |
||
26 | * @param string $file or null for default |
||
27 | * @param bool $separateMeta |
||
28 | */ |
||
29 | public function __construct($path, $file, $separateMeta = false) |
||
35 | |||
36 | /** |
||
37 | * @param array $data |
||
38 | * @return bool|int |
||
39 | */ |
||
40 | public function save(array $data) |
||
59 | |||
60 | /** |
||
61 | * Get filename to use to store data |
||
62 | * @param string $dir |
||
|
|||
63 | * @return string |
||
64 | */ |
||
65 | public static function getFilename() { |
||
95 | } |
||
96 |
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.