| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | function the_map() { |
||
| 13 | |||
| 14 | $height = $this->item->height(); |
||
|
|
|||
| 15 | $width = $this->item->width(); |
||
| 16 | $map_id = $this->item->html_id(); |
||
| 17 | $map_params = $this->item->make_args(); |
||
| 18 | $markers = $this->_make_markers_args(); |
||
| 19 | $info_windows = $this->_make_info_windows(); |
||
| 20 | |||
| 21 | require dirname( __DIR__) . '/templates/map-view.php'; |
||
| 22 | |||
| 23 | } |
||
| 24 | |||
| 62 |
If you implement
__calland 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
__callis implemented by a parent class and only the child class knows which methods exist: