| 1 | <?php |
||
| 10 | trait ToolbarHandlerTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Handle toolbar's tool request. |
||
| 14 | * |
||
| 15 | * @param Request $request |
||
| 16 | * @param $identifier |
||
| 17 | * @return mixed |
||
| 18 | * @throws PermissionDenied |
||
| 19 | */ |
||
| 20 | public function toolbar(Request $request, $identifier) |
||
| 33 | |||
| 34 | abstract protected function init(); |
||
| 37 | } |
||
| 38 |
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.