| 1 | <?php |
||
| 10 | class Map_View extends \WPLib_View_Base { |
||
| 11 | |||
| 12 | function the_map() { |
||
| 20 | |||
| 21 | private function _make_map_args() { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | private function _make_markers_args() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Marker $marker |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | private function _make_marker_args( $marker ) { |
||
| 51 | |||
| 52 | } |
||
| 53 |
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: