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
|
|
|
#[ORM\ManyToOne(targetEntity: AccessUrl::class)] |
33
|
|
|
#[ORM\JoinColumn(name: 'access_url_id', referencedColumnName: 'id', nullable: true)] |
34
|
|
|
protected ?AccessUrl $accessUrl = null; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @return int |
38
|
|
|
*/ |
39
|
|
|
public function getId() |
40
|
|
|
{ |
41
|
|
|
return $this->id; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @return string |
46
|
|
|
*/ |
47
|
|
|
public function getCode() |
48
|
|
|
{ |
49
|
|
|
return $this->code; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
public function setCode(string $code): self |
53
|
|
|
{ |
54
|
|
|
$this->code = $code; |
55
|
|
|
|
56
|
|
|
return $this; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @return string |
61
|
|
|
*/ |
62
|
|
|
public function getTitle() |
63
|
|
|
{ |
64
|
|
|
return $this->title; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function setTitle(string $title): self |
68
|
|
|
{ |
69
|
|
|
$this->title = $title; |
70
|
|
|
|
71
|
|
|
return $this; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @return string |
76
|
|
|
*/ |
77
|
|
|
public function getDescription() |
78
|
|
|
{ |
79
|
|
|
return $this->description; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
public function setDescription(string $description): self |
83
|
|
|
{ |
84
|
|
|
$this->description = $description; |
85
|
|
|
|
86
|
|
|
return $this; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function getAccessUrl(): ?AccessUrl |
90
|
|
|
{ |
91
|
|
|
return $this->accessUrl; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function setAccessUrl(?AccessUrl $accessUrl): self |
95
|
|
|
{ |
96
|
|
|
$this->accessUrl = $accessUrl; |
97
|
|
|
|
98
|
|
|
return $this; |
99
|
|
|
} |
100
|
|
|
} |
101
|
|
|
|