LibraryRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace App\Repository;
4
5
use App\Entity\Library;
6
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7
use Doctrine\Persistence\ManagerRegistry;
8
9
/**
10
 * Repository class for managing Library entities.
11
 *
12
 * @extends ServiceEntityRepository<Library>
13
 */
14
class LibraryRepository extends ServiceEntityRepository
15
{
16
    /**
17
     * Constructor to bind this repository to the Library entity.
18
     */
19
    public function __construct(ManagerRegistry $registry)
20
    {
21
        parent::__construct($registry, Library::class);
22
    }
23
24
    //    /**
25
    //     * @return Library[] Returns an array of Library objects
26
    //     */
27
    //    public function findByExampleField($value): array
28
    //    {
29
    //        return $this->createQueryBuilder('l')
30
    //            ->andWhere('l.exampleField = :val')
31
    //            ->setParameter('val', $value)
32
    //            ->orderBy('l.id', 'ASC')
33
    //            ->setMaxResults(10)
34
    //            ->getQuery()
35
    //            ->getResult()
36
    //        ;
37
    //    }
38
39
    //    public function findOneBySomeField($value): ?Library
40
    //    {
41
    //        return $this->createQueryBuilder('l')
42
    //            ->andWhere('l.exampleField = :val')
43
    //            ->setParameter('val', $value)
44
    //            ->getQuery()
45
    //            ->getOneOrNullResult()
46
    //        ;
47
    //    }
48
}
49