AbstractConfigurationExtension::tokenParsers()   A
last analyzed

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 2
Bugs 0 Features 1
Metric Value
eloc 1
c 2
b 0
f 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Leonidas\Library\Core\View\Twig\Abstracts;
4
5
use Leonidas\Library\Core\View\Twig\ConfiguredExtension;
6
7
abstract class AbstractConfigurationExtension extends ConfiguredExtension
8
{
9
    public function __construct()
10
    {
11
        $this->config = [
12
            'token_parsers' => $this->tokenParsers(),
13
            'node_visitors' => $this->nodeVisitors(),
14
            'filters' => $this->filters(),
15
            'tests' => $this->tests(),
16
            'functions' => $this->functions(),
17
            'operators' => $this->operators(),
18
        ];
19
    }
20
21
    protected function tokenParsers(): array
22
    {
23
        return [];
24
    }
25
26
    protected function nodeVisitors(): array
27
    {
28
        return [];
29
    }
30
31
    protected function filters(): array
32
    {
33
        return [];
34
    }
35
36
    protected function tests(): array
37
    {
38
        return [];
39
    }
40
41
    protected function functions(): array
42
    {
43
        return [];
44
    }
45
46
    protected function operators(): array
47
    {
48
        return [];
49
    }
50
}
51