| 1 | <?php |
||
| 11 | class RolesDataTable extends AbstractDataTable |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | protected $model = Role::class; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | protected $transformer = RoleTransformer::class; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Display ajax response. |
||
| 25 | * |
||
| 26 | * @return \Illuminate\Http\JsonResponse |
||
| 27 | */ |
||
| 28 | public function ajax() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get columns. |
||
| 39 | * |
||
| 40 | * @return array |
||
|
|
|||
| 41 | */ |
||
| 42 | protected function getColumns() |
||
| 50 | } |
||
| 51 |
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.