1 | <?php |
||
11 | class AttributesDataTable extends AbstractDataTable |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | protected $model = Attribute::class; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $transformer = AttributeTransformer::class; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected $order = [ |
||
27 | [1, 'asc'], |
||
28 | [0, 'asc'], |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected $builderParameters = [ |
||
35 | 'rowGroup' => '{ |
||
36 | dataSrc: \'group\' |
||
37 | }', |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * Get columns. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | protected function getColumns(): array |
||
61 | } |
||
62 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.