Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | protected function _make_info_windows() { |
||
43 | |||
44 | $windows = array(); |
||
45 | |||
46 | /** |
||
47 | * @var Marker $marker |
||
48 | */ |
||
49 | foreach( $this->item->markers() as $marker ) { |
||
50 | $windows[] = array( |
||
51 | 'content' => $marker->info_window()->content(), |
||
52 | 'pixel_offset' => $marker->info_window()->pixel_offset(), |
||
53 | 'position' => $marker->info_window()->position(), |
||
54 | 'max_width' => $marker->info_window()->max_width(), |
||
55 | ); |
||
56 | } |
||
57 | |||
58 | return $windows; |
||
59 | |||
60 | } |
||
61 | } |
||
62 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: