| 1 | <?php |
||
| 7 | trait OrderByHandlerTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Save direction by column. |
||
| 11 | * |
||
| 12 | * @param $column |
||
| 13 | * @param $direction |
||
| 14 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector |
||
| 15 | */ |
||
| 16 | 1 | public function orderBy($column, $direction) |
|
| 22 | |||
| 23 | abstract protected function init(); |
||
| 27 | } |
||
| 28 |
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.