Completed
Pull Request — master (#124)
by
unknown
02:35
created

InputColumn   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 37
c 0
b 0
f 0
ccs 0
cts 12
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntryName() 0 4 1
A setEntryName() 0 4 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui\Grid\Column;
4
5
6
/**
7
 * Class TextColumn
8
 *
9
 * @package eXpansion\Framework\Core\Model\Gui\Grid;
10
 * @author  oliver de Cramer <[email protected]>
11
 */
12
class InputColumn extends AbstractColumn
13
{
14
15
    /** @var string */
16
    protected $entryName;
17
18
    /**
19
     * TextColumn constructor.
20
     *
21
     * @param string $key
22
     * @param string $name
23
     * @param float $widthCoeficiency
24
     * @param boolean $sortable
0 ignored issues
show
Bug introduced by
There is no parameter named $sortable. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
25
     * @param boolean $translatable
0 ignored issues
show
Bug introduced by
There is no parameter named $translatable. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
26
     */
27
    public function __construct($key, $name, $widthCoeficiency)
28
    {
29
        parent::__construct($key, $name, $widthCoeficiency);
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getEntryName(): string
36
    {
37
        return $this->entryName;
38
    }
39
40
    /**
41
     * @param string $entryName
42
     */
43
    public function setEntryName(string $entryName)
44
    {
45
        $this->entryName = $entryName;
46
    }
47
48
}
49