Completed
Push — master ( e560f4...a3e8d6 )
by Abdelrahman
11:21 queued 10:06
created

PlatformsDataTable::getBuilderParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 14
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 10
nc 1
nop 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A PlatformsDataTable::getColumns() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cortex\Statistics\DataTables\Adminarea;
6
7
use Rinvex\Statistics\Models\Platform;
8
use Cortex\Foundation\DataTables\AbstractDataTable;
9
use Cortex\Statistics\Transformers\Adminarea\PlatformTransformer;
10
11
class PlatformsDataTable extends AbstractDataTable
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    protected $model = Platform::class;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected $transformer = PlatformTransformer::class;
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected $createButton = false;
27
28
    /**
29
     * Get columns.
30
     *
31
     * @return array
32
     */
33
    protected function getColumns(): array
34
    {
35
        return [
36
            'family' => ['title' => trans('cortex/statistics::common.family'), 'responsivePriority' => 0],
37
            'version' => ['title' => trans('cortex/statistics::common.version')],
38
            'count' => ['title' => trans('cortex/statistics::common.count')],
39
        ];
40
    }
41
}
42