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

GradeModel::getDescription()   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
 * GradeModel.
13
 */
14
#[ORM\Table(name: 'grade_model')]
15
#[ORM\Entity]
16
class GradeModel
17
{
18
    #[ORM\Column(name: 'id', type: 'integer')]
19
    #[ORM\Id]
20
    #[ORM\GeneratedValue]
21
    protected ?int $id = null;
22
23
    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
24
    protected string $title;
25
26
    #[ORM\Column(name: 'description', type: 'text', nullable: true)]
27
    protected ?string $description = null;
28
29
    #[ORM\Column(name: 'default_lowest_eval_exclude', type: 'boolean', nullable: true)]
30
    protected ?bool $defaultLowestEvalExclude = null;
31
32
    #[ORM\Column(name: 'default_external_eval', type: 'boolean', nullable: true)]
33
    protected ?bool $defaultExternalEval = null;
34
35
    #[ORM\Column(name: 'default_external_eval_prefix', type: 'string', length: 140, nullable: true)]
36
    protected ?string $defaultExternalEvalPrefix = null;
37
38
    public function setTitle(string $title): self
39
    {
40
        $this->title = $title;
41
42
        return $this;
43
    }
44
45
    /**
46
     * Get title.
47
     *
48
     * @return string
49
     */
50
    public function getTitle()
51
    {
52
        return $this->title;
53
    }
54
55
    public function setDescription(string $description): self
56
    {
57
        $this->description = $description;
58
59
        return $this;
60
    }
61
62
    /**
63
     * Get description.
64
     *
65
     * @return string
66
     */
67
    public function getDescription()
68
    {
69
        return $this->description;
70
    }
71
72
    public function setDefaultLowestEvalExclude(bool $defaultLowestEvalExclude): self
73
    {
74
        $this->defaultLowestEvalExclude = $defaultLowestEvalExclude;
75
76
        return $this;
77
    }
78
79
    /**
80
     * Get defaultLowestEvalExclude.
81
     *
82
     * @return bool
83
     */
84
    public function getDefaultLowestEvalExclude()
85
    {
86
        return $this->defaultLowestEvalExclude;
87
    }
88
89
    public function setDefaultExternalEval(bool $defaultExternalEval): self
90
    {
91
        $this->defaultExternalEval = $defaultExternalEval;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Get defaultExternalEval.
98
     *
99
     * @return bool
100
     */
101
    public function getDefaultExternalEval()
102
    {
103
        return $this->defaultExternalEval;
104
    }
105
106
    public function setDefaultExternalEvalPrefix(string $defaultExternalEvalPrefix): self
107
    {
108
        $this->defaultExternalEvalPrefix = $defaultExternalEvalPrefix;
109
110
        return $this;
111
    }
112
113
    /**
114
     * Get defaultExternalEvalPrefix.
115
     *
116
     * @return string
117
     */
118
    public function getDefaultExternalEvalPrefix()
119
    {
120
        return $this->defaultExternalEvalPrefix;
121
    }
122
123
    /**
124
     * Get id.
125
     *
126
     * @return int
127
     */
128
    public function getId()
129
    {
130
        return $this->id;
131
    }
132
}
133