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 DateTime; |
10
|
|
|
use Doctrine\ORM\Mapping as ORM; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Project. |
14
|
|
|
*/ |
15
|
|
|
#[ORM\Table(name: 'ticket_project')] |
16
|
|
|
#[ORM\Entity] |
17
|
|
|
class TicketProject |
18
|
|
|
{ |
19
|
|
|
#[ORM\Column(name: 'id', type: 'integer')] |
20
|
|
|
#[ORM\Id] |
21
|
|
|
#[ORM\GeneratedValue] |
22
|
|
|
protected ?int $id = null; |
23
|
|
|
|
24
|
|
|
#[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)] |
25
|
|
|
protected string $title; |
26
|
|
|
|
27
|
|
|
#[ORM\Column(name: 'description', type: 'text', nullable: true)] |
28
|
|
|
protected ?string $description = null; |
29
|
|
|
|
30
|
|
|
#[ORM\Column(name: 'email', type: 'string', nullable: true)] |
31
|
|
|
protected ?string $email = null; |
32
|
|
|
|
33
|
|
|
#[ORM\Column(name: 'other_area', type: 'integer', nullable: true)] |
34
|
|
|
protected ?string $otherArea = null; |
35
|
|
|
|
36
|
|
|
#[ORM\Column(name: 'sys_insert_user_id', type: 'integer')] |
37
|
|
|
protected int $insertUserId; |
38
|
|
|
|
39
|
|
|
#[ORM\Column(name: 'sys_insert_datetime', type: 'datetime')] |
40
|
|
|
protected DateTime $insertDateTime; |
41
|
|
|
|
42
|
|
|
#[ORM\Column(name: 'sys_lastedit_user_id', type: 'integer', nullable: true, unique: false)] |
43
|
|
|
protected ?int $lastEditUserId = null; |
44
|
|
|
|
45
|
|
|
#[ORM\Column(name: 'sys_lastedit_datetime', type: 'datetime', nullable: true, unique: false)] |
46
|
|
|
protected ?DateTime $lastEditDateTime = null; |
47
|
|
|
|
48
|
|
|
public function __construct() |
49
|
|
|
{ |
50
|
|
|
$this->insertDateTime = new DateTime(); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @return int |
55
|
|
|
*/ |
56
|
|
|
public function getId() |
57
|
|
|
{ |
58
|
|
|
return $this->id; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @return string |
63
|
|
|
*/ |
64
|
|
|
public function getTitle() |
65
|
|
|
{ |
66
|
|
|
return $this->title; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function setTitle(string $title): self |
70
|
|
|
{ |
71
|
|
|
$this->title = $title; |
72
|
|
|
|
73
|
|
|
return $this; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @return string |
78
|
|
|
*/ |
79
|
|
|
public function getDescription() |
80
|
|
|
{ |
81
|
|
|
return $this->description; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function setDescription(string $description): self |
85
|
|
|
{ |
86
|
|
|
$this->description = $description; |
87
|
|
|
|
88
|
|
|
return $this; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @return string |
93
|
|
|
*/ |
94
|
|
|
public function getEmail() |
95
|
|
|
{ |
96
|
|
|
return $this->email; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function setEmail(string $email): self |
100
|
|
|
{ |
101
|
|
|
$this->email = $email; |
102
|
|
|
|
103
|
|
|
return $this; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return string |
108
|
|
|
*/ |
109
|
|
|
public function getOtherArea() |
110
|
|
|
{ |
111
|
|
|
return $this->otherArea; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
public function setOtherArea(string $otherArea): self |
115
|
|
|
{ |
116
|
|
|
$this->otherArea = $otherArea; |
117
|
|
|
|
118
|
|
|
return $this; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return int |
123
|
|
|
*/ |
124
|
|
|
public function getInsertUserId() |
125
|
|
|
{ |
126
|
|
|
return $this->insertUserId; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
public function setInsertUserId(int $insertUserId): self |
130
|
|
|
{ |
131
|
|
|
$this->insertUserId = $insertUserId; |
132
|
|
|
|
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return DateTime |
138
|
|
|
*/ |
139
|
|
|
public function getInsertDateTime() |
140
|
|
|
{ |
141
|
|
|
return $this->insertDateTime; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function setInsertDateTime(DateTime $insertDateTime): self |
145
|
|
|
{ |
146
|
|
|
$this->insertDateTime = $insertDateTime; |
147
|
|
|
|
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @return int |
153
|
|
|
*/ |
154
|
|
|
public function getLastEditUserId() |
155
|
|
|
{ |
156
|
|
|
return $this->lastEditUserId; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
public function setLastEditUserId(int $lastEditUserId): self |
160
|
|
|
{ |
161
|
|
|
$this->lastEditUserId = $lastEditUserId; |
162
|
|
|
|
163
|
|
|
return $this; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return DateTime |
168
|
|
|
*/ |
169
|
|
|
public function getLastEditDateTime() |
170
|
|
|
{ |
171
|
|
|
return $this->lastEditDateTime; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
public function setLastEditDateTime(DateTime $lastEditDateTime): self |
175
|
|
|
{ |
176
|
|
|
$this->lastEditDateTime = $lastEditDateTime; |
177
|
|
|
|
178
|
|
|
return $this; |
179
|
|
|
} |
180
|
|
|
} |
181
|
|
|
|