Completed
Pull Request — master (#229)
by Enrico
06:28
created

ElseSt   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A compile() 0 6 2
1
<?php
2
3
namespace PHPSA\Compiler\Statement;
4
5
use PHPSA\Context;
6
7
class ElseSt extends AbstractCompiler
8
{
9
    protected $name = '\PhpParser\Node\Stmt\Else_';
10
11
    /**
12
     * @param \PhpParser\Node\Stmt\Else_ $elseStatement
13
     * @param Context $context
14
     */
15 2
    public function compile($elseStatement, Context $context)
16
    {
17 2
        foreach ($elseStatement->stmts as $stmt) {
18 2
            \PHPSA\nodeVisitorFactory($stmt, $context);
19 2
        }
20 2
    }
21
}
22