Passed
Pull Request — master (#5720)
by
unknown
07:05
created

JustificationDocument::getCode()   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 Doctrine\ORM\Mapping as ORM;
10
11
#[ORM\Entity]
12
#[ORM\Table(name: 'justification_document')]
13
class JustificationDocument
14
{
15
    #[ORM\Id]
16
    #[ORM\GeneratedValue(strategy: 'AUTO')]
17
    #[ORM\Column(type: 'integer')]
18
    private ?int $id = null;
19
20
    #[ORM\Column(type: 'text', nullable: true)]
21
    private ?string $code = null;
22
23
    #[ORM\Column(type: 'text', nullable: true)]
24
    private ?string $name = null;
25
26
    #[ORM\Column(type: 'integer', nullable: true)]
27
    private ?int $validityDuration = null;
28
29
    #[ORM\Column(type: 'text', nullable: true)]
30
    private ?string $comment = null;
31
32
    #[ORM\Column(type: 'integer', nullable: true)]
33
    private ?int $dateManualOn = null;
34
35
    public function getId(): ?int
36
    {
37
        return $this->id;
38
    }
39
40
    public function getCode(): ?string
41
    {
42
        return $this->code;
43
    }
44
45
    public function setCode(?string $code): self
46
    {
47
        $this->code = $code;
48
49
        return $this;
50
    }
51
52
    public function getName(): ?string
53
    {
54
        return $this->name;
55
    }
56
57
    public function setName(?string $name): self
58
    {
59
        $this->name = $name;
60
61
        return $this;
62
    }
63
64
    public function getValidityDuration(): ?int
65
    {
66
        return $this->validityDuration;
67
    }
68
69
    public function setValidityDuration(?int $validityDuration): self
70
    {
71
        $this->validityDuration = $validityDuration;
72
73
        return $this;
74
    }
75
76
    public function getComment(): ?string
77
    {
78
        return $this->comment;
79
    }
80
81
    public function setComment(?string $comment): self
82
    {
83
        $this->comment = $comment;
84
85
        return $this;
86
    }
87
88
    public function getDateManualOn(): ?int
89
    {
90
        return $this->dateManualOn;
91
    }
92
93
    public function setDateManualOn(?int $dateManualOn): self
94
    {
95
        $this->dateManualOn = $dateManualOn;
96
97
        return $this;
98
    }
99
}
100