Passed
Pull Request — master (#44)
by Paweł
03:43
created

DemoLesson   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 6
c 1
b 0
f 1
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLesson() 0 3 1
A setLesson() 0 3 1
1
<?php
2
3
namespace App\Entity;
4
5
use App\Model\DemoLessonInterface;
6
use App\Model\LessonInterface;
7
use App\Model\PersistableAwareTrait;
8
use App\Model\TimestampableAwareTrait;
9
10
class DemoLesson implements DemoLessonInterface
11
{
12
    use TimestampableAwareTrait;
13
    use PersistableAwareTrait;
14
15
    private ?LessonInterface $lesson = null;
16
17
    public function getLesson(): ?LessonInterface
18
    {
19
        return $this->lesson;
20
    }
21
22
    public function setLesson(?LessonInterface $lesson): void
23
    {
24
        $this->lesson = $lesson;
25
    }
26
}
27