Passed
Push — master ( e66a3e...15c60f )
by Paweł
04:21
created

LessonAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLesson() 0 3 1
A getLesson() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Model;
6
7
trait LessonAwareTrait
8
{
9
    private $lesson;
10
11
    public function getLesson(): ?LessonInterface
12
    {
13
        return $this->lesson;
14
    }
15
16
    public function setLesson(LessonInterface $lesson): void
17
    {
18
        $this->lesson = $lesson;
19
    }
20
}
21