| Total Complexity | 9 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Module implements ModuleInterface |
||
| 14 | { |
||
| 15 | use TimestampableAwareTrait, SortableAwareTrait, PersistableAwareTrait; |
||
| 16 | |||
| 17 | private $title; |
||
| 18 | |||
| 19 | private $description; |
||
| 20 | |||
| 21 | private $course; |
||
| 22 | |||
| 23 | private $lessons; |
||
| 24 | |||
| 25 | public function __construct() |
||
| 26 | { |
||
| 27 | $this->lessons = new ArrayCollection(); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getTitle(): ?string |
||
| 31 | { |
||
| 32 | return $this->title; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function setTitle(string $title): void |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getDescription(): ?string |
||
| 41 | { |
||
| 42 | return $this->description; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setDescription(string $description): void |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getCourse(): ?CourseInterface |
||
| 53 | } |
||
| 54 | |||
| 55 | public function setCourse(?CourseInterface $course): void |
||
| 56 | { |
||
| 57 | $this->course = $course; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getLessons(): Collection |
||
| 61 | { |
||
| 62 | return $this->lessons; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function __toString() |
||
| 68 | } |
||
| 69 | } |
||
| 70 |