Completed
Push — experimental/3.1 ( c83f5d...923e5e )
by Yangsin
63:41 queued 57:20
created

GenericTokenParser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 15
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTag() 0 4 1
1
<?php
2
namespace Eccube\Twig\Extension;
3
4
class GenericTokenParser extends AbstractTokenParser
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
5
{
6
7
    protected $tagName;
8
9
    public function __construct($app, $tagName)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
10
    {
11
        $this->app = $app;
12
        $this->tagName = $tagName;
13
    }
14
    public function getTag()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
15
    {
16
        return $this->tagName;
17
    }
18
}
19