| 1 | <?php |
||
| 7 | class Repository extends BaseRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return Meta |
||
| 11 | */ |
||
| 12 | public function getModel() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create meta. |
||
| 19 | * |
||
| 20 | * @param $metaable |
||
| 21 | * @param $key |
||
| 22 | * @param $value |
||
| 23 | * @param $group |
||
| 24 | * @return Meta |
||
| 25 | */ |
||
| 26 | public function create($metaable, $meta, $group) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Deletes group |
||
| 41 | * |
||
| 42 | * @param $group |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function removeGroup($group) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Remove by id. |
||
| 54 | * |
||
| 55 | * @param $id |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public function removeById($id) |
||
| 78 | } |
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: