Object2attributeRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
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\Object2attribute;
6
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7
use Doctrine\Persistence\ManagerRegistry;
8
9
/**
10
 * @method Object2attribute|null find($id, $lockMode = null, $lockVersion = null)
11
 * @method Object2attribute|null findOneBy(array $criteria, array $orderBy = null)
12
 * @method Object2attribute[]    findAll()
13
 * @method Object2attribute[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
14
 */
15
class Object2attributeRepository extends ServiceEntityRepository
16
{
17
    public function __construct(ManagerRegistry $registry)
18
    {
19
        parent::__construct($registry, Object2attribute::class);
20
    }
21
22
    // /**
23
    //  * @return Object2attribute[] Returns an array of Object2attribute objects
24
    //  */
25
    /*
26
    public function findByExampleField($value)
27
    {
28
        return $this->createQueryBuilder('o')
29
            ->andWhere('o.exampleField = :val')
30
            ->setParameter('val', $value)
31
            ->orderBy('o.id', 'ASC')
32
            ->setMaxResults(10)
33
            ->getQuery()
34
            ->getResult()
35
        ;
36
    }
37
    */
38
39
    /*
40
    public function findOneBySomeField($value): ?Object2attribute
41
    {
42
        return $this->createQueryBuilder('o')
43
            ->andWhere('o.exampleField = :val')
44
            ->setParameter('val', $value)
45
            ->getQuery()
46
            ->getOneOrNullResult()
47
        ;
48
    }
49
    */
50
}
51