Node   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A compile() 0 8 1
A getExecutionPriority() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Twig Bufferized Template package, an RunOpenCode project.
4
 *
5
 * (c) 2017 RunOpenCode
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace RunOpenCode\Twig\BufferizedTemplate\Tag\Bufferize;
11
12
/**
13
 * Class Node
14
 *
15
 * Bufferize node denotes node in AST which ought to be buffered.
16
 *
17
 * @package RunOpenCode\Twig\BufferizedTemplate\Tag\Bufferize
18
 *
19
 * @internal
20
 */
21
final class Node extends \Twig_Node
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 4
    public function compile(\Twig_Compiler $compiler)
27
    {
28
        $compiler
29 4
            ->addDebugInfo($this)
30 4
            ->write("\n");
31
32 4
        $compiler->subcompile($this->getNode('body'));
33 4
    }
34
35 4
    public function getExecutionPriority()
36
    {
37 4
        return $this->getAttribute('execution_priority');
38
    }
39
}
40