| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CWikiCategoryRepository extends NestedTreeRepository |
||
| 12 | { |
||
| 13 | public function findByCourse(Course $course, ?Session $session): array |
||
| 14 | { |
||
| 15 | return $this->findBy(['course' => $course, 'session' => $session], ['lft' => 'ASC']); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function countByCourse(Course $course, ?Session $session): int |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array|string |
||
| 25 | */ |
||
| 26 | public function buildCourseTree(Course $course, ?Session $session, array $options = []) |
||
| 45 |