EchoSt::compile()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 2
dl 0
loc 8
ccs 0
cts 5
cp 0
crap 6
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\Compiler\Statement;
7
8
use PHPSA\CompiledExpression;
9
use PHPSA\Context;
10
11
class EchoSt extends AbstractCompiler
12
{
13
    protected $name = '\PhpParser\Node\Stmt\Echo_';
14
15
    /**
16
     * @param \PhpParser\Node\Stmt\Echo_ $stmt
17
     * @param Context $context
18
     * @return CompiledExpression
19
     */
20
    public function compile($stmt, Context $context)
21
    {
22
        $compiler = $context->getExpressionCompiler();
23
24
        foreach ($stmt->exprs as $expr) {
25
            $compiler->compile($expr);
26
        }
27
    }
28
}
29