1 | <?php |
||
10 | trait FilesRequestTrait { |
||
11 | protected $aFiles = array(); |
||
12 | |||
13 | 17 | protected function initFiles($aFiles) { |
|
16 | |||
17 | /** |
||
18 | * @return bool |
||
19 | */ |
||
20 | public function hasFiles() { |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | public function getFiles() { |
||
30 | |||
31 | /** |
||
32 | * @param $sFileName |
||
33 | * @return array |
||
|
|||
34 | */ |
||
35 | public function getFile($sFileName) { |
||
38 | |||
39 | } |
||
40 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.