Completed
Push — master ( 18696f...4ea9b4 )
by Serhii
04:47 queued 11s
created

PerformanceRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 19
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A findAllWithinSeasons() 0 8 1
1
<?php
2
3
namespace App\Repository;
4
5
use App\Entity\Performance;
6
use Doctrine\Common\Persistence\ManagerRegistry;
7
8
class PerformanceRepository extends AbstractRepository
9
{
10 18
    public function __construct(ManagerRegistry $registry)
11
    {
12 18
        parent::__construct($registry, Performance::class);
13 18
    }
14
15
    /**
16
     * @return array|Performance[]
17
     */
18 1
    public function findAllWithinSeasons()
19
    {
20 1
        return $this->createQueryBuilder('p')
21 1
            ->innerJoin('p.seasons', 'ps')
22 1
            ->groupBy('p.id')
23 1
            ->getQuery()
24 1
            ->execute();
25
    }
26
}
27