Completed
Pull Request — master (#136)
by
unknown
19:52 queued 08:32
created

RowsForSaleRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A findVenueSectorsByPerformanceEventQueryBuilder() 0 9 1
1
<?php
2
3
namespace AppBundle\Repository;
4
5
use AppBundle\Entity\PerformanceEvent;
6
7
class RowsForSaleRepository extends AbstractRepository
8
{
9 1
    public function findVenueSectorsByPerformanceEventQueryBuilder(PerformanceEvent $performanceEvent)
10
    {
11 1
        $qb = $this->createQueryBuilder('s')
12 1
            ->join('s.venueSector', 'vs')
13 1
            ->andWhere('vs.venue = :venue')
14 1
            ->setParameter('venue', $performanceEvent->getVenue())
15
        ;
16 1
        return $qb;
17
    }
18
}
19