1 | <?php |
||
11 | class AbilitiesDataTable extends AbstractDataTable |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | protected $model = Ability::class; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $transformer = AbilityTransformer::class; |
||
22 | |||
23 | /** |
||
24 | * Display ajax response. |
||
25 | * |
||
26 | * @return \Illuminate\Http\JsonResponse |
||
27 | */ |
||
28 | public function ajax() |
||
37 | |||
38 | /** |
||
39 | * Get columns. |
||
40 | * |
||
41 | * @return array |
||
|
|||
42 | */ |
||
43 | protected function getColumns() |
||
53 | } |
||
54 |
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.