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

Lesson   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 62
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getCompleted() 0 3 1
A setEmbedCode() 0 3 1
A getEmbedCode() 0 3 1
A setTitle() 0 3 1
A getTitle() 0 3 1
A setDescription() 0 3 1
A getModule() 0 3 1
A setCompleted() 0 3 1
A setModule() 0 3 1
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