SimpleTestEntity::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ComradeReader\Test\Helpers;
4
5
/**
6
 * @codeCoverageIgnore
7
 * @package ComradeReader\Test\Helpers
8
 */
9
class SimpleTestEntity
10
{
11
    /** @var string $id */
12
    private $id;
13
14
    /** @var string $colorName */
15
    private $colorName;
16
17
    /**
18
     * @return string
19
     */
20
    public function getId()
21
    {
22
        return $this->id;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getColorName()
29
    {
30
        return $this->colorName;
31
    }
32
33
    /**
34
     * @param string $colorName
35
     * @return SimpleTestEntity
36
     */
37
    public function setColorName($colorName)
38
    {
39
        $this->colorName = $colorName;
40
        return $this;
41
    }
42
43
    /**
44
     * @param string $id
45
     * @return SimpleTestEntity
46
     */
47
    public function setId($id)
48
    {
49
        $this->id = $id;
50
        return $this;
51
    }
52
}