| 1 | <?php |
||
| 3 | class Ajde_View extends Ajde_Template |
||
| 4 | { |
||
| 5 | /** |
||
| 6 | * @param Ajde_Controller $controller |
||
| 7 | * |
||
| 8 | * @return Ajde_View |
||
| 9 | */ |
||
| 10 | public static function fromController(Ajde_Controller $controller) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Ajde_Core_Route $route |
||
| 23 | * |
||
| 24 | * @return Ajde_View |
||
| 25 | */ |
||
| 26 | public static function fromRoute($route) |
||
| 39 | } |
||
| 40 |
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: