Passed
Push — master ( 6761c6...82c8fb )
by Angel Fernando Quiroz
08:20 queued 13s
created

Notification::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\PluginBundle\Entity\CourseHomeNotify;
5
6
use Chamilo\CoreBundle\Entity\Course;
7
use Doctrine\ORM\Mapping as ORM;
8
9
#[ORM\Table(name: 'course_home_notify_notification')]
10
#[ORM\Entity]
11
class Notification
12
{
13
    #[ORM\Column(name: 'id', type: 'integer')]
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue]
16
    private ?int $id;
17
18
    #[ORM\Column(name: 'content', type: 'text')]
19
    private string $content;
20
21
    #[ORM\Column(name: 'expiration_link', type: 'string')]
22
    private string $expirationLink;
23
24
    #[ORM\Column(name: 'hash', type: 'string')]
25
    private string $hash;
26
27
    #[ORM\ManyToOne(targetEntity: Course::class)]
28
    #[ORM\JoinColumn(name: 'c_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
29
    private Course $course;
30
31
    public function getId(): ?int
32
    {
33
        return $this->id;
34
    }
35
36
    public function getContent(): string
37
    {
38
        return $this->content;
39
    }
40
41
    public function setContent(string $content): static
42
    {
43
        $this->content = $content;
44
45
        return $this;
46
    }
47
48
    public function getExpirationLink(): string
49
    {
50
        return $this->expirationLink;
51
    }
52
53
    public function setExpirationLink(string $expirationLink): static
54
    {
55
        $this->expirationLink = $expirationLink;
56
57
        return $this;
58
    }
59
60
    public function getHash(): string
61
    {
62
        return $this->hash;
63
    }
64
65
    public function setHash(string $hash): static
66
    {
67
        $this->hash = $hash;
68
69
        return $this;
70
    }
71
72
    public function getCourse(): Course
73
    {
74
        return $this->course;
75
    }
76
77
    public function setCourse(Course $course): static
78
    {
79
        $this->course = $course;
80
81
        return $this;
82
    }
83
}
84