Completed
Push — master ( 124462...3bbcdb )
by Дмитрий
02:56
created

ThrowSt::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
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
use PHPSA\Definition\ClassMethod;
11
use PHPSA\Compiler\Expression;
12
13
class ThrowSt extends AbstractCompiler
14
{
15
    protected $name = \PhpParser\Node\Stmt\Throw_::class;
16
17
    /**
18
     * @param \PhpParser\Node\Stmt\Throw_ $stmt
19
     * @param Context $context
20
     * @return CompiledExpression
21
     */
22
    public function compile($stmt, Context $context)
23
    {
24
        $context->getExpressionCompiler()->compile($stmt->expr);
25
    }
26
}
27