1 | <?php |
||
15 | class ImportLogsDataTable extends AbstractDataTable |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $model = Log::class; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | protected $transformer = LogTransformer::class; |
||
26 | |||
27 | /** |
||
28 | * Get the query object to be processed by dataTables. |
||
29 | * |
||
30 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
31 | */ |
||
32 | public function query() |
||
38 | |||
39 | /** |
||
40 | * Display ajax response. |
||
41 | * |
||
42 | * @return \Illuminate\Http\JsonResponse |
||
43 | */ |
||
44 | public function ajax() |
||
50 | |||
51 | /** |
||
52 | * Get default builder parameters. |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | protected function getBuilderParameters(): array |
||
87 | |||
88 | /** |
||
89 | * Get columns. |
||
90 | * |
||
91 | * @return array |
||
92 | */ |
||
93 | protected function getColumns(): array |
||
102 | } |
||
103 |
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.