1 | <?php |
||
11 | class AttributesDataTable extends AbstractDataTable |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | protected $model = Attribute::class; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $transformer = AttributeTransformer::class; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected $builderParameters = [ |
||
27 | 'rowGroup' => '{ |
||
28 | dataSrc: \'group\' |
||
29 | }', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Get the query object to be processed by dataTables. |
||
34 | * |
||
35 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
36 | */ |
||
37 | public function query() |
||
44 | |||
45 | /** |
||
46 | * Get columns. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getColumns(): array |
||
66 | } |
||
67 |
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.