Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | function the_map() { |
||
13 | |||
14 | wp_localize_script( 'map-control', 'objMapParams', $this->_make_map_args() ); |
||
15 | wp_localize_script( 'map-control', 'objMapMarkers', $this->_make_markers_args() ); |
||
16 | |||
17 | echo '<div id="map" class="google-map" style="height: 400px; width: 100%"></div>'; |
||
18 | |||
19 | } |
||
20 | |||
53 |
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: