IndicatorRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIndicator() 0 8 1
1
<?php
2
3
namespace Api\Entity;
4
5
use Doctrine\ORM\EntityRepository;
6
7
class IndicatorRepository extends EntityRepository
8
{
9 1
    public function getIndicator($indicator)
10
    {
11 1
        $dql = 'SELECT i FROM Api\Entity\Indicator i WHERE i.id = :indicator';
12
13 1
        return $this->getEntityManager()->createQuery($dql)
14 1
            ->setParameter('indicator', $indicator)
15 1
            ->getArrayResult();
16
    }
17
}
18