Completed
Push — master ( 1d5aab...1362ac )
by Yannick
02:39 queued 01:44
created

TicketProject::getInsertDateTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 ?int $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', unique: false, nullable: true)]
43
    protected ?int $lastEditUserId = null;
44
45
    #[ORM\Column(name: 'sys_lastedit_datetime', type: 'datetime', unique: false, nullable: true)]
46
    protected ?DateTime $lastEditDateTime = null;
47
48
    #[ORM\ManyToOne(targetEntity: AccessUrl::class)]
49
    #[ORM\JoinColumn(name: 'access_url_id', referencedColumnName: 'id', nullable: true)]
50
    protected ?AccessUrl $accessUrl = null;
51
52
    public function __construct()
53
    {
54
        $this->insertDateTime = new DateTime();
55
    }
56
57
    public function getId(): ?int
58
    {
59
        return $this->id;
60
    }
61
62
    public function getTitle(): string
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
    public function getDescription(): ?string
75
    {
76
        return $this->description;
77
    }
78
79
    public function setDescription(string $description): self
80
    {
81
        $this->description = $description;
82
83
        return $this;
84
    }
85
86
    public function getEmail(): ?string
87
    {
88
        return $this->email;
89
    }
90
91
    public function setEmail(string $email): self
92
    {
93
        $this->email = $email;
94
95
        return $this;
96
    }
97
98
    public function getOtherArea(): int
99
    {
100
        return (int) $this->otherArea;
101
    }
102
103
    public function setOtherArea(?int $otherArea): static
104
    {
105
        $this->otherArea = $otherArea;
106
107
        return $this;
108
    }
109
110
    public function getInsertUserId(): int
111
    {
112
        return $this->insertUserId;
113
    }
114
115
    public function setInsertUserId(int $insertUserId): self
116
    {
117
        $this->insertUserId = $insertUserId;
118
119
        return $this;
120
    }
121
122
    public function getInsertDateTime(): DateTime
123
    {
124
        return $this->insertDateTime;
125
    }
126
127
    public function setInsertDateTime(DateTime $insertDateTime): self
128
    {
129
        $this->insertDateTime = $insertDateTime;
130
131
        return $this;
132
    }
133
134
    public function getLastEditUserId(): ?int
135
    {
136
        return $this->lastEditUserId;
137
    }
138
139
    public function setLastEditUserId(int $lastEditUserId): self
140
    {
141
        $this->lastEditUserId = $lastEditUserId;
142
143
        return $this;
144
    }
145
146
    public function getLastEditDateTime(): ?DateTime
147
    {
148
        return $this->lastEditDateTime;
149
    }
150
151
    public function setLastEditDateTime(DateTime $lastEditDateTime): self
152
    {
153
        $this->lastEditDateTime = $lastEditDateTime;
154
155
        return $this;
156
    }
157
158
    public function getAccessUrl(): ?AccessUrl
159
    {
160
        return $this->accessUrl;
161
    }
162
163
    public function setAccessUrl(?AccessUrl $accessUrl): self
164
    {
165
        $this->accessUrl = $accessUrl;
166
167
        return $this;
168
    }
169
}
170