| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 23 | public function getOneById(string $id): ?LessonInterface  | 
            ||
| 24 |     { | 
            ||
| 25 |         return $this->createQueryBuilder('l') | 
            ||
| 26 |             ->where('l.id = :id') | 
            ||
| 27 |             ->leftJoin('l.module', 'm') | 
            ||
| 28 |             ->leftJoin('m.course', 'c') | 
            ||
| 29 |             ->andWhere('c.visible != false') | 
            ||
| 30 |             ->setParameter('id', $id) | 
            ||
| 31 | ->getQuery()  | 
            ||
| 32 | ->getOneOrNullResult()  | 
            ||
| 33 | ;  | 
            ||
| 36 |