ModuleOptions   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getGrids() 0 4 1
A setGrids() 0 5 1
A getDoctrineEntityManager() 0 4 1
A setDoctrineEntityManager() 0 5 1
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid\Options;
8
9
use Zend\Stdlib\AbstractOptions;
10
11
/**
12
 * Class ModuleOptions
13
 * @package Nnx\DataGrid\Options
14
 */
15
class ModuleOptions extends AbstractOptions
16
{
17
    /**
18
     * Массив настроек таблиц
19
     * @var array
20
     */
21
    protected $grids;
22
23
    /**
24
     * @var string
25
     */
26
    protected $doctrineEntityManager;
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $doctrineEntityManager exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
27
28
    /**
29
     * Возвращает массив настроек таблиц
30
     * @return array
31
     */
32
    public function getGrids()
33
    {
34
        return $this->grids;
35
    }
36
37
    /**
38
     * Устанавливает настроики таблиц
39
     * @param array $grids
40
     * @return $this
41
     */
42
    public function setGrids($grids)
43
    {
44
        $this->grids = $grids;
45
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getDoctrineEntityManager()
52
    {
53
        return $this->doctrineEntityManager;
54
    }
55
56
    /**
57
     * @param string $doctrineEntityManager
58
     * @return $this
59
     */
60
    public function setDoctrineEntityManager($doctrineEntityManager)
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $doctrineEntityManager exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
61
    {
62
        $this->doctrineEntityManager = $doctrineEntityManager;
63
        return $this;
64
    }
65
}
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...
66