Completed
Push — master ( 28be56...359087 )
by Serhii
13:20
created

RowsForSaleRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 12
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
    public function findVenueSectorsByPerformanceEventQueryBuilder(PerformanceEvent $performanceEvent)
10
    {
11
        $qb = $this->createQueryBuilder('s')
12
            ->join('s.venueSector', 'vs')
13
            ->andWhere('vs.venue = :venue')
14
            ->setParameter('venue', $performanceEvent->getVenue())
15
        ;
16
        return $qb;
17
    }
18
}
19