1 | <?php |
||
10 | class LogsDataTable extends AbstractDataTable |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | protected $model = Log::class; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $transformer = LogTransformer::class; |
||
21 | |||
22 | /** |
||
23 | * Get the query object to be processed by dataTables. |
||
24 | * |
||
25 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
26 | */ |
||
27 | public function query() |
||
33 | |||
34 | /** |
||
35 | * Display ajax response. |
||
36 | * |
||
37 | * @return \Illuminate\Http\JsonResponse |
||
38 | */ |
||
39 | public function ajax() |
||
45 | |||
46 | /** |
||
47 | * Get default builder parameters. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function getBuilderParameters(): array |
||
82 | |||
83 | /** |
||
84 | * Get columns. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | protected function getColumns(): array |
||
97 | } |
||
98 |
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.