1 | <?php |
||
10 | class MediaDataTable extends AbstractDataTable |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | protected $model = Media::class; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $createButton = false; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | protected $builderParameters = [ |
||
26 | 'initComplete' => 'function (settings) { |
||
27 | implicitForms.initialize(); |
||
28 | }', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected $transformer = MediaTransformer::class; |
||
35 | |||
36 | /** |
||
37 | * Get the query object to be processed by dataTables. |
||
38 | * |
||
39 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
40 | */ |
||
41 | public function query() |
||
47 | |||
48 | /** |
||
49 | * Get columns. |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | protected function getColumns(): array |
||
65 | } |
||
66 |
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.