Passed
Push — master ( 727abb...ceefce )
by Yannick
07:55 queued 14s
created

TicketStatus::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Doctrine\ORM\Mapping as ORM;
10
11
/**
12
 * Status.
13
 */
14
#[ORM\Table(name: 'ticket_status')]
15
#[ORM\Entity]
16
class TicketStatus
17
{
18
    #[ORM\Column(name: 'id', type: 'integer')]
19
    #[ORM\Id]
20
    #[ORM\GeneratedValue]
21
    protected ?int $id = null;
22
23
    #[ORM\Column(name: 'code', type: 'string', length: 255, nullable: false)]
24
    protected string $code;
25
26
    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
27
    protected string $title;
28
29
    #[ORM\Column(name: 'description', type: 'text', nullable: true)]
30
    protected ?string $description = null;
31
32
    /**
33
     * @return int
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getCode()
44
    {
45
        return $this->code;
46
    }
47
48
    public function setCode(string $code): self
49
    {
50
        $this->code = $code;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getTitle()
59
    {
60
        return $this->title;
61
    }
62
63
    public function setTitle(string $title): self
64
    {
65
        $this->title = $title;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getDescription()
74
    {
75
        return $this->description;
76
    }
77
78
    public function setDescription(string $description): self
79
    {
80
        $this->description = $description;
81
82
        return $this;
83
    }
84
}
85