Completed
Push — master ( f754fe...9d04b6 )
by Дмитрий
11:59
created

FinallySt::compile()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PHPSA\Compiler\Statement;
4
5
use PHPSA\Context;
6
7
class FinallySt extends AbstractCompiler
8
{
9
    protected $name = '\PhpParser\Node\Stmt\Finally_';
10
11
    /**
12
     * @param \PhpParser\Node\Stmt\Finally_ $statement
13
     * @param Context $context
14
     */
15
    public function compile($statement, Context $context)
16
    {
17
        foreach ($statement->stmts as $stmt) {
18
            \PHPSA\nodeVisitorFactory($stmt, $context);
19
        }
20
    }
21
}
22