Checkbox   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getColumnConfig() 0 11 1
1
<?php
2
/**
3
 * @package Nnx\DataGrid
4
 * @author Lobanov Aleksandr
5
 */
6
7
namespace Nnx\DataGrid\View\Helper\JqGrid\Column;
8
9
use Nnx\DataGrid\Column\ColumnInterface;
10
11
/**
12
 * Class Checkbox
13
 * @package Nnx\DataGrid\View\Helper\JqGrid\Column
14
 */
15
class Checkbox extends Text
16
{
17
18
    /**
19
     * Возвращает конфигурацию колонки
20
     * @param ColumnInterface $column
21
     * @return array
22
     */
23
    protected function getColumnConfig(ColumnInterface $column)
24
    {
25
        $config = parent::getColumnConfig($column);
26
27
        $config = array_merge_recursive($config, [
28
            'formatter' => "checkbox",
29
            'formatoptions' => ['disabled' => false],
30
        ]);
31
32
        return $config;
33
    }
34
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
35