Completed
Push — develop ( f6b321...a05a5f )
by Abdelrahman
14:27
created

PlatformsDataTable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A 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
10
class PlatformsDataTable extends AbstractDataTable
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    protected $model = Platform::class;
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected $createButton = false;
21
22
    /**
23
     * Get columns.
24
     *
25
     * @return array
26
     */
27
    protected function getColumns(): array
28
    {
29
        return [
30
            'family' => ['title' => trans('cortex/statistics::common.family'), 'responsivePriority' => 0],
31
            'version' => ['title' => trans('cortex/statistics::common.version')],
32
            'count' => ['title' => trans('cortex/statistics::common.count')],
33
        ];
34
    }
35
}
36