| 1 | <?php |
||
| 7 | class PagesRepository extends Repository |
||
| 8 | { |
||
| 9 | public function getModel() |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Get pages for footer. |
||
| 16 | * Max number of pages is 2 at moment. |
||
| 17 | * |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | public function getHeader($count = 1) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get pages for footer. |
||
| 31 | * |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getFooter() |
||
| 41 | |||
| 42 | |||
| 43 | public function getPagesHelp() |
||
| 51 | } |
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: