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

SequenceVariable::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 Doctrine\ORM\Mapping as ORM;
10
use Symfony\Component\Validator\Constraints as Assert;
11
12
#[ORM\Table(name: 'sequence_variable')]
13
#[ORM\Entity]
14
class SequenceVariable
15
{
16
    #[ORM\Column(name: 'id', type: 'integer')]
17
    #[ORM\Id]
18
    #[ORM\GeneratedValue]
19
    protected ?int $id = null;
20
21
    #[Assert\NotBlank]
22
    #[ORM\Column(name: 'title', type: 'string', nullable: true)]
23
    protected ?string $title = null;
24
25
    #[ORM\Column(name: 'description', type: 'text', nullable: true)]
26
    protected ?string $description = null;
27
28
    #[ORM\Column(name: 'default_val', type: 'string', nullable: true)]
29
    protected ?string $defaultValue = null;
30
31
    /**
32
     * Get id.
33
     *
34
     * @return int
35
     */
36
    public function getId()
37
    {
38
        return $this->id;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getTitle()
45
    {
46
        return $this->title;
47
    }
48
49
    public function setTitle(string $title): self
50
    {
51
        $this->title = $title;
52
53
        return $this;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getDefaultValue()
60
    {
61
        return $this->defaultValue;
62
    }
63
64
    public function setDefaultValue(string $defaultValue): self
65
    {
66
        $this->defaultValue = $defaultValue;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getDescription()
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