Passed
Push — master ( f5aa3d...244e6c )
by Paweł
03:13 queued 11s
created

Lesson::getCompleted()   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
namespace App\Entity;
4
5
use App\Model\LessonInterface;
6
use App\Model\PersistableAwareTrait;
7
use App\Model\SortableAwareTrait;
8
use App\Model\TimestampableAwareTrait;
9
10
class Lesson implements LessonInterface
11
{
12
    use TimestampableAwareTrait, SortableAwareTrait, PersistableAwareTrait;
13
14
    private $title;
15
16
    private $description;
17
18
    private $embedCode;
19
20
    private $module;
21
22
    private $completed;
23
24
    public function getTitle(): ?string
25
    {
26
        return $this->title;
27
    }
28
29
    public function setTitle(string $title): void
30
    {
31
        $this->title = $title;
32
    }
33
34
    public function getDescription(): ?string
35
    {
36
        return $this->description;
37
    }
38
39
    public function setDescription(string $description): void
40
    {
41
        $this->description = $description;
42
    }
43
44
    public function getEmbedCode(): ?string
45
    {
46
        return $this->embedCode;
47
    }
48
49
    public function setEmbedCode(string $embedCode): void
50
    {
51
        $this->embedCode = $embedCode;
52
    }
53
54
    public function getModule(): ?Module
55
    {
56
        return $this->module;
57
    }
58
59
    public function setModule(?Module $module): void
60
    {
61
        $this->module = $module;
62
    }
63
64
    public function getCompleted(): ?bool
65
    {
66
        return $this->completed;
67
    }
68
69
    public function setCompleted(?bool $completed): void
70
    {
71
        $this->completed = $completed;
72
    }
73
}
74