Test Failed
Branch zf3-version (3457ba)
by Diego
04:38
created

IndicatorValueRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 13
rs 10
c 2
b 0
f 0

1 Method

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