1 | <?php |
||
10 | class AbilitiesDataTable extends AbstractDataTable |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | protected $model = Ability::class; |
||
16 | |||
17 | /** |
||
18 | * Get the query object to be processed by dataTables. |
||
19 | * |
||
20 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
21 | */ |
||
22 | public function query() |
||
30 | |||
31 | /** |
||
32 | * Display ajax response. |
||
33 | * |
||
34 | * @return \Illuminate\Http\JsonResponse |
||
35 | */ |
||
36 | public function ajax() |
||
42 | |||
43 | /** |
||
44 | * Get columns. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | protected function getColumns(): array |
||
61 | } |
||
62 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.