| 1 | <?php |
||
| 9 | trait SearchHandlerTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Handle search action. |
||
| 13 | * |
||
| 14 | * @param Request $request |
||
| 15 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector |
||
| 16 | * @throws UnauthorizedException |
||
| 17 | */ |
||
| 18 | 1 | public function handleSearch(Request $request) |
|
| 31 | |||
| 32 | abstract protected function init(); |
||
| 36 | } |
||
| 37 |
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.