Passed
Push — 4.1 ( cc1509...e0bb47 )
by Andrea
12:41
created

setParametroTabella()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Fi\CoreBundle\Twig\Extension;
4
5
use Fi\CoreBundle\Utils\Tabella\ParametriTabella;
6
7
class ParametriTabellaTwigExtension extends \Twig_Extension
8
{
9 1
    public function getFilters()
10
    {
11
        return array(
12 1
            new \Twig_SimpleFilter('getparametrotabella', array($this, 'getParametroTabella')),
13 1
            new \Twig_SimpleFilter('setparametrotabella', array($this, 'setParametroTabella')),
14
        );
15
    }
16 1
    public function getParametroTabella($parametro)
17
    {
18 1
        return ParametriTabella::getParameter($parametro);
19
    }
20
    public function setParametroTabella($parametro)
21
    {
22
        return ParametriTabella::setParameter($parametro);
23
    }
24
}
25