| 1 | <?php |
||
| 7 | class ShowHideColumnsTool extends AbstractTool |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Position where should tool be placed. |
||
| 11 | */ |
||
| 12 | public function position() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Unique tool identifier. |
||
| 19 | */ |
||
| 20 | 2 | public function identifier(): string |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Tool's view. |
||
| 27 | */ |
||
| 28 | public function render() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Handle tool execution. |
||
| 37 | * @param Request $request |
||
| 38 | */ |
||
| 39 | public function handle(Request $request) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Check allowance to show and process tool. |
||
| 46 | */ |
||
| 47 | public function check(): bool |
||
| 51 | } |
||
| 52 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.