Completed
Push — master ( c58ed8...556108 )
by Julito
10:31
created

TicketStatus::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * Status.
11
 *
12
 * @ORM\Table(name="ticket_status")
13
 * @ORM\Entity
14
 */
15
class TicketStatus
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     *
29
     * @ORM\Column(name="code", type="string", length=255, nullable=false)
30
     */
31
    protected $code;
32
33
    /**
34
     * @var string
35
     *
36
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
37
     */
38
    protected $name;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="description", type="text", nullable=true)
44
     */
45
    protected $description;
46
47
    /**
48
     * @return int
49
     */
50
    public function getId()
51
    {
52
        return $this->id;
53
    }
54
55
    /**
56
     * @param int $id
57
     *
58
     * @return TicketStatus
59
     */
60
    public function setId($id)
61
    {
62
        $this->id = $id;
63
64
        return $this;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getCode()
71
    {
72
        return $this->code;
73
    }
74
75
    /**
76
     * @param string $code
77
     *
78
     * @return TicketStatus
79
     */
80
    public function setCode($code)
81
    {
82
        $this->code = $code;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getName()
91
    {
92
        return $this->name;
93
    }
94
95
    /**
96
     * @param string $name
97
     *
98
     * @return TicketStatus
99
     */
100
    public function setName($name)
101
    {
102
        $this->name = $name;
103
104
        return $this;
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getDescription()
111
    {
112
        return $this->description;
113
    }
114
115
    /**
116
     * @param string $description
117
     *
118
     * @return TicketStatus
119
     */
120
    public function setDescription($description)
121
    {
122
        $this->description = $description;
123
124
        return $this;
125
    }
126
}
127