| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait DatatableStateTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Datatable (injected by the constructor). |
||
| 9 | * |
||
| 10 | * @var \Distilleries\DatatableBuilder\EloquentDatatable $datatable |
||
| 11 | */ |
||
| 12 | protected $datatable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Model (injected by the contructor). |
||
| 16 | * |
||
| 17 | * @var \Illuminate\Database\Eloquent\Model $model |
||
| 18 | */ |
||
| 19 | protected $model; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * View to display datatable. |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
| 25 | */ |
||
| 26 | 4 | public function getIndexDatatable() |
|
| 33 | ]); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return generated datatable. |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | 2 | public function getDatatable() |
|
| 49 |