Passed
Push — master ( 3ec415...9f2f47 )
by Daniel
16:25
created

LayoutRepository::findDefault()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Silverback API Components Bundle Project
5
 *
6
 * (c) Daniel West <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Silverback\ApiComponentsBundle\Repository\Core;
15
16
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
17
use Doctrine\Persistence\ManagerRegistry;
18
use Silverback\ApiComponentsBundle\Entity\Core\Layout;
19
20
/**
21
 * @author Daniel West <[email protected]>
22
 *
23
 * @method Layout|null find($id, $lockMode = null, $lockVersion = null)
24
 * @method Layout|null findOneBy(array $criteria, array $orderBy = null)
25
 * @method Layout[]    findAll()
26
 * @method Layout[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
27
 */
28
class LayoutRepository extends ServiceEntityRepository
29
{
30 1
    public function __construct(ManagerRegistry $registry)
31
    {
32 1
        parent::__construct($registry, Layout::class);
33 1
    }
34
}
35