Completed
Pull Request — master (#232)
by
unknown
05:28
created

LNum::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PHPSA\Compiler\Scalar;
4
5
use PHPSA\CompiledExpression;
6
use PHPSA\Context;
7
8
class LNum extends AbstractScalarCompiler
9
{
10
    protected $name = '\PhpParser\Node\Scalar\LNumber';
11
12
    /**
13
     * @param \PhpParser\Node\Scalar\LNumber $lNum
14
     * @param Context $context
15
     * @return CompiledExpression
16
     */
17
    public function compile($lNum, Context $context)
18
    {
19
        $compiler = $context->getExpressionCompiler();
20
21
        $compiler->compile($lNum->value);
22
    }
23
}
24