| 1 | <?php |
||
| 9 | class ActivitiesDataTable extends LogsDataTable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | protected $transformer = ActivityTransformer::class; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get the query object to be processed by dataTables. |
||
| 18 | * |
||
| 19 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|
|||
| 20 | */ |
||
| 21 | public function query() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Display ajax response. |
||
| 30 | * |
||
| 31 | * @return \Illuminate\Http\JsonResponse |
||
| 32 | */ |
||
| 33 | public function ajax() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get columns. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | protected function getColumns(): array |
||
| 54 | } |
||
| 55 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.