SimpleTestEntity   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getColorName() 0 4 1
A setColorName() 0 5 1
A setId() 0 5 1
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
}