Test Failed
Push — zf3-version ( 0397c2...c5fe3e )
by Diego
11:09
created

Sector::getId()   A

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 Api\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Sector
9
 *
10
 * @ORM\Table(name="sector")
11
 * @ORM\Entity
12
 */
13
class Sector
14
{
15
    /**
16
     * @var integer
17
     *
18
     * @ORM\Column(name="id", type="integer", nullable=false)
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="IDENTITY")
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="name", type="string", length=255, nullable=true)
28
     */
29
    private $name;
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="color", type="string", length=10, nullable=true)
35
     */
36
    private $color;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="description", type="text", length=65535, nullable=true)
42
     */
43
    private $description;
44
45
46
47
    /**
48
     * Gets the value of id.
49
     *
50
     * @return integer
51
     */
52
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
58
59
    /**
60
     * Gets the value of name.
61
     *
62
     * @return string
63
     */
64
    public function getName()
65
    {
66
        return $this->name;
67
    }
68
69
    /**
70
     * Sets the value of name.
71
     *
72
     * @param string $name the name
73
     *
74
     * @return self
75
     */
76
    private function setName($name)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
77
    {
78
        $this->name = $name;
79
80
        return $this;
81
    }
82
83
    /**
84
     * Gets the value of color.
85
     *
86
     * @return string
87
     */
88
    public function getColor()
89
    {
90
        return $this->color;
91
    }
92
93
    /**
94
     * Sets the value of color.
95
     *
96
     * @param string $color the color
97
     *
98
     * @return self
99
     */
100
    private function setColor($color)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
101
    {
102
        $this->color = $color;
103
104
        return $this;
105
    }
106
107
    /**
108
     * Gets the value of description.
109
     *
110
     * @return string
111
     */
112
    public function getDescription()
113
    {
114
        return $this->description;
115
    }
116
117
    /**
118
     * Sets the value of description.
119
     *
120
     * @param string $description the description
121
     *
122
     * @return self
123
     */
124
    private function setDescription($description)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
125
    {
126
        $this->description = $description;
127
128
        return $this;
129
    }
130
}
131
132