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

TrackEHotpotatoes::getId()   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 DateTime;
10
use Doctrine\ORM\Mapping as ORM;
11
12
/**
13
 * TrackEHotpotatoes.
14
 */
15
#[ORM\Table(name: 'track_e_hotpotatoes')]
16
#[ORM\Index(name: 'idx_tehp_user_id', columns: ['exe_user_id'])]
17
#[ORM\Index(name: 'idx_tehp_c_id', columns: ['c_id'])]
18
#[ORM\Entity]
19
class TrackEHotpotatoes
20
{
21
    #[ORM\Column(name: 'id', type: 'integer')]
22
    #[ORM\Id]
23
    #[ORM\GeneratedValue]
24
    protected ?int $id = null;
25
26
    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
27
    protected string $title;
28
29
    #[ORM\Column(name: 'exe_user_id', type: 'integer', nullable: true)]
30
    protected ?int $exeUserId = null;
31
32
    #[ORM\Column(name: 'exe_date', type: 'datetime', nullable: false)]
33
    protected DateTime $exeDate;
34
35
    #[ORM\Column(name: 'c_id', type: 'integer', nullable: false)]
36
    protected int $cId;
37
38
    #[ORM\Column(name: 'score', type: 'smallint', nullable: false)]
39
    protected int $score;
40
41
    #[ORM\Column(name: 'max_score', type: 'smallint', nullable: false)]
42
    protected int $maxScore;
43
44
    /**
45
     * Set title.
46
     *
47
     * @return TrackEHotpotatoes
48
     */
49
    public function setTitle(string $title)
50
    {
51
        $this->title = $title;
52
53
        return $this;
54
    }
55
56
    /**
57
     * Get title.
58
     *
59
     * @return string
60
     */
61
    public function getTitle()
62
    {
63
        return $this->title;
64
    }
65
66
    /**
67
     * Set exeUserId.
68
     *
69
     * @return TrackEHotpotatoes
70
     */
71
    public function setExeUserId(int $exeUserId)
72
    {
73
        $this->exeUserId = $exeUserId;
74
75
        return $this;
76
    }
77
78
    /**
79
     * Get exeUserId.
80
     *
81
     * @return int
82
     */
83
    public function getExeUserId()
84
    {
85
        return $this->exeUserId;
86
    }
87
88
    /**
89
     * Set exeDate.
90
     *
91
     * @return TrackEHotpotatoes
92
     */
93
    public function setExeDate(DateTime $exeDate)
94
    {
95
        $this->exeDate = $exeDate;
96
97
        return $this;
98
    }
99
100
    /**
101
     * Get exeDate.
102
     *
103
     * @return DateTime
104
     */
105
    public function getExeDate()
106
    {
107
        return $this->exeDate;
108
    }
109
110
    /**
111
     * Set cId.
112
     *
113
     * @return TrackEHotpotatoes
114
     */
115
    public function setCId(int $cId)
116
    {
117
        $this->cId = $cId;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get cId.
124
     *
125
     * @return int
126
     */
127
    public function getCId()
128
    {
129
        return $this->cId;
130
    }
131
132
    /**
133
     * Get id.
134
     *
135
     * @return int
136
     */
137
    public function getId()
138
    {
139
        return $this->id;
140
    }
141
142
    public function getScore(): int
143
    {
144
        return $this->score;
145
    }
146
147
    public function setScore(int $score): self
148
    {
149
        $this->score = $score;
150
151
        return $this;
152
    }
153
154
    public function getMaxScore(): int
155
    {
156
        return $this->maxScore;
157
    }
158
159
    public function setMaxScore(int $maxScore): self
160
    {
161
        $this->maxScore = $maxScore;
162
163
        return $this;
164
    }
165
}
166