1 | <?php |
||
23 | class DirectoryHandler |
||
24 | { |
||
25 | /** |
||
26 | * @var Directory |
||
27 | */ |
||
28 | protected $directory; |
||
29 | |||
30 | /** |
||
31 | * @var \ArrayIterator |
||
32 | */ |
||
33 | protected $iterator; |
||
34 | |||
35 | /** |
||
36 | * Sets directory in context. |
||
37 | * |
||
38 | * @param Directory $directory |
||
39 | */ |
||
40 | public function setDirectory(Directory $directory) |
||
45 | |||
46 | /** |
||
47 | * Returns children iterator |
||
48 | * |
||
49 | * @return ArrayIterator |
||
|
|||
50 | */ |
||
51 | public function iterator() |
||
55 | } |
||
56 |
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.