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

InputColumn::getEntryName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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