| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait CourseControllerTrait |
||
| 14 | { |
||
| 15 | protected $course; |
||
| 16 | protected $session; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public function setCourse(Course $course) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return Course |
||
| 28 | */ |
||
| 29 | public function getCourse() |
||
| 30 | { |
||
| 31 | return $this->course; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function hasCourse(): bool |
||
| 35 | { |
||
| 36 | return null !== $this->course; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Session |
||
| 41 | */ |
||
| 42 | public function getSession() |
||
| 43 | { |
||
| 44 | return $this->session; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function setSession(Session $session) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function getSessionId() |
||
| 61 | } |
||
| 62 | } |
||
| 63 |