Passed
Push — master ( 1e00a2...f52220 )
by Angel Fernando Quiroz
07:44 queued 14s
created

XApiCmi5ItemRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Chamilo\CoreBundle\Repository;
4
5
use Chamilo\CoreBundle\Entity\XApiCmi5Item;
6
use Doctrine\ORM\EntityManagerInterface;
7
use Doctrine\ORM\Mapping\ClassMetadata;
8
use Gedmo\Tree\Entity\Repository\NestedTreeRepository;
9
10
/**
11
 * @extends NestedTreeRepository<XApiCmi5Item>
12
 *
13
 * @method XApiCmi5Item|null find($id, $lockMode = null, $lockVersion = null)
14
 * @method XApiCmi5Item|null findOneBy(array $criteria, array $orderBy = null)
15
 * @method XApiCmi5Item[]    findAll()
16
 * @method XApiCmi5Item[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
17
 */
18
class XApiCmi5ItemRepository extends NestedTreeRepository
19
{
20
    public function __construct(EntityManagerInterface $em)
21
    {
22
        parent::__construct($em, $em->getClassMetadata(XApiCmi5Item::class));
23
    }
24
}
25