Completed
Pull Request — master (#41)
by Vladimir
02:24
created

TwigExtension::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace allejo\stakx\Twig;
4
5
class TwigExtension extends \Twig_Extension
6
{
7
    public function getFilters ()
8
    {
9
        return array(
10
            GroupByFilter::get(),
11
            OrderFilter::get(),
12
            WhereFilter::get()
13
        );
14
    }
15
16
    public function getFunctions ()
17
    {
18
        return array(
19
            BaseUrlFunction::get(),
20
            FileFunction::get()
21
        );
22
    }
23
24
    /**
25
     * Returns the name of the extension.
26
     *
27
     * @return string The extension name
28
     */
29 13
    public function getName ()
30
    {
31 13
        return 'stakx_core_extension';
32
    }
33
}