Passed
Push — master ( fc8817...f91339 )
by Angel Fernando Quiroz
10:10 queued 10s
created

Embed::getDisplayEndDate()   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
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\PluginBundle\EmbedRegistry\Entity;
5
6
use Chamilo\CoreBundle\Entity\Course;
7
use Chamilo\CoreBundle\Entity\Session;
8
use Doctrine\ORM\Mapping as ORM;
9
10
#[ORM\Entity]
11
#[ORM\Table(name: 'plugin_embed_registry_embed')]
12
class Embed
13
{
14
    #[ORM\Column(name: 'id', type: 'integer')]
15
    #[ORM\Id]
16
    #[ORM\GeneratedValue]
17
    private ?int $id;
18
19
    #[ORM\Column(name: 'title', type: 'text')]
20
    private string $title;
21
22
    #[ORM\Column(name: 'display_start_date', type: 'datetime')]
23
    private \DateTime $displayStartDate;
24
25
    #[ORM\Column(name: 'display_end_date', type: 'datetime')]
26
    private \DateTime $displayEndDate;
27
28
    #[ORM\Column(name: 'html_code', type: 'text')]
29
    private string $htmlCode;
30
31
    #[ORM\ManyToOne(targetEntity: Course::class)]
32
    #[ORM\JoinColumn(name: 'c_id', referencedColumnName: 'id', nullable: false)]
33
    private Course $course;
34
35
    #[ORM\ManyToOne(targetEntity: Session::class)]
36
    #[ORM\JoinColumn(name: 'session_id', referencedColumnName: 'id')]
37
    private ?Session $session;
38
39
    public function getId(): ?int
40
    {
41
        return $this->id;
42
    }
43
44
    public function setId(int $id): static
45
    {
46
        $this->id = $id;
47
48
        return $this;
49
    }
50
51
    public function getTitle(): string
52
    {
53
        return $this->title;
54
    }
55
56
    public function setTitle(string $title): static
57
    {
58
        $this->title = $title;
59
60
        return $this;
61
    }
62
63
    public function getDisplayStartDate(): \DateTime
64
    {
65
        return $this->displayStartDate;
66
    }
67
68
    public function setDisplayStartDate(\DateTime $displayStartDate): static
69
    {
70
        $this->displayStartDate = $displayStartDate;
71
72
        return $this;
73
    }
74
75
    public function getDisplayEndDate(): \DateTime
76
    {
77
        return $this->displayEndDate;
78
    }
79
80
    public function setDisplayEndDate(\DateTime $displayEndDate): static
81
    {
82
        $this->displayEndDate = $displayEndDate;
83
84
        return $this;
85
    }
86
87
    public function getHtmlCode(): string
88
    {
89
        return $this->htmlCode;
90
    }
91
92
    public function setHtmlCode(string $htmlCode): static
93
    {
94
        $this->htmlCode = $htmlCode;
95
96
        return $this;
97
    }
98
99
    public function getCourse(): Course
100
    {
101
        return $this->course;
102
    }
103
104
    public function setCourse(Course $course): static
105
    {
106
        $this->course = $course;
107
108
        return $this;
109
    }
110
111
    public function getSession(): ?Session
112
    {
113
        return $this->session;
114
    }
115
116
    public function setSession(?Session $session = null): static
117
    {
118
        $this->session = $session;
119
120
        return $this;
121
    }
122
}
123