| Total Complexity | 10 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 67 | } |
||
| 68 | |||
| 69 | public function setCompleted(?bool $completed): void |
||
| 70 | { |
||
| 71 | $this->completed = $completed; |
||
| 72 | } |
||
| 73 | } |
||
| 74 |