Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 1 | public function getIndicatorValue($indicator) |
|
10 | { |
||
11 | $dql = 'SELECT iv FROM Api\Entity\IndicatorValue iv |
||
12 | WHERE iv.indicator = :indicator |
||
13 | 1 | ORDER BY iv.year ASC'; |
|
14 | |||
15 | 1 | return $this->getEntityManager()->createQuery($dql) |
|
16 | 1 | ->setParameter('indicator', $indicator) |
|
17 | 1 | ->getArrayResult(); |
|
18 | } |
||
19 | } |
||
21 |