1 | <?php |
||
10 | class Directory { |
||
11 | |||
12 | private $path; |
||
13 | |||
14 | public function __construct($path) { |
||
17 | |||
18 | public function __toString() { |
||
21 | |||
22 | public function getPath() { |
||
25 | |||
26 | public function setPath($path) { |
||
29 | |||
30 | /** |
||
31 | * Retorna TRUE se é um diretorio |
||
32 | * @return boolean |
||
33 | */ |
||
34 | public function exists(){ |
||
37 | |||
38 | /** |
||
39 | * Cria o diretorio para salvar a imagem |
||
40 | * @param string $pathetorio Caminho do novo diretorio |
||
|
|||
41 | * @param int $chmod permissões deste diretório |
||
42 | * @return boolean Retora TRUE caso obtenha algum sucesso |
||
43 | */ |
||
44 | public function create($chmod = 0755) { |
||
55 | |||
56 | /** |
||
57 | * Renomeia o diretorio |
||
58 | * @param string $newName Caminho para o novo diretorio |
||
59 | * @return boolean |
||
60 | */ |
||
61 | public function rename($newName) { |
||
68 | |||
69 | /** |
||
70 | * Exclui o diretorio, e os arquivos dentro dele |
||
71 | * @param string $path |
||
72 | * @return boolean |
||
73 | */ |
||
74 | public function remove() { |
||
83 | |||
84 | /** Exclui os arquivos deste diretorio */ |
||
85 | protected function removeAllFiles() { |
||
97 | |||
98 | } |
||
99 |
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.