| 1 | <?php |
||
| 10 | trait HistoryHandlerTrait |
||
| 11 | { |
||
| 12 | protected $historyCrudHistory = 'jarboe::crud.history'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Show history page. |
||
| 16 | * |
||
| 17 | * @param Request $request |
||
| 18 | * @param $id |
||
| 19 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
| 20 | * @throws PermissionDenied |
||
| 21 | * @throws UnauthorizedException |
||
| 22 | */ |
||
| 23 | 4 | public function handleHistory(Request $request, $id) |
|
| 44 | |||
| 45 | abstract protected function beforeInit(); |
||
| 50 | } |
||
| 51 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.