Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 17 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 31 | public function getColumns() |
|
15 | { |
||
16 | $dataset = [ |
||
17 | [ |
||
18 | 31 | 'title' => trans('general.number'), |
|
19 | 'value' => function (Room $data) { |
||
20 | 11 | return $data->number; |
|
21 | 31 | }, |
|
22 | ], |
||
23 | [ |
||
24 | 31 | 'title' => trans('general.floor'), |
|
25 | 'value' => function (Room $data) { |
||
26 | 11 | return $data->floor; |
|
27 | 31 | }, |
|
28 | ], |
||
29 | [ |
||
30 | 31 | 'title' => trans('general.capacity'), |
|
31 | 'value' => function (Room $data) { |
||
32 | 11 | return $data->capacity; |
|
33 | 31 | }, |
|
34 | ], |
||
35 | [ |
||
36 | 31 | 'title' => trans('general.price'), |
|
37 | 'value' => function (Room $data) { |
||
38 | 11 | return $data->price; |
|
39 | 31 | }, |
|
40 | ], |
||
41 | [ |
||
42 | 31 | 'title' => trans('general.comment'), |
|
43 | 'value' => function (Room $data) { |
||
44 | 11 | return $data->comment; |
|
45 | 31 | }, |
|
46 | ], |
||
47 | ]; |
||
48 | |||
49 | 31 | return $dataset; |
|
50 | } |
||
52 |