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

GenericNode::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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