Total Complexity | 7 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CheckboxColumn extends BaseColumn |
||
13 | { |
||
14 | use Configurable; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $field; |
||
20 | |||
21 | /** |
||
22 | * @var bool|callable |
||
23 | */ |
||
24 | protected $display = true; |
||
25 | |||
26 | /** |
||
27 | * ActionColumn constructor. |
||
28 | * @param array $config |
||
29 | */ |
||
30 | public function __construct(array $config) |
||
31 | { |
||
32 | $this->loadConfig($config); |
||
33 | |||
34 | $this->filter = new StubFilter(); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getLabel(): string |
||
41 | { |
||
42 | return $this->label ?? trans('grid_view::grid.deletion'); |
||
|
|||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param $row |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getValue($row) |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param $row |
||
56 | * @return array|string |
||
57 | */ |
||
58 | public function render($row) |
||
72 | } |
||
73 | } |
||
74 |