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

GenericNode   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A compile() 0 4 1
1
<?php
2
namespace Eccube\Twig\Extension;
3
4
class GenericNode extends \Twig_Node
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
5
{
6
    protected $compiler_callback;
7
    public function __construct(\Twig_Node_Expression $expr, $lineno, $tag, \Closure $compiler_callback)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
8
    {
9
        parent::__construct(array('expr' => $expr), array(), $lineno, $tag);
10
        $this->compiler_callback = $compiler_callback;
11
    }
12
13
    public function compile(\Twig_Compiler $compiler)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15
        call_user_func($this->compiler_callback, $this, $compiler);
16
    }
17
}
18