| 1 | <?php |
||
| 11 | class TestimonialsDataTable extends AbstractDataTable |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | protected $model = TestimonialContract::class; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | protected $transformer = TestimonialTransformer::class; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get columns. |
||
| 25 | * |
||
| 26 | * @return array |
||
|
|
|||
| 27 | */ |
||
| 28 | protected function getColumns() |
||
| 40 | } |
||
| 41 |
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.