Completed
Pull Request — master (#209)
by Enrico
03:57
created

ShellExec::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace PHPSA\Compiler\Expression;
4
5
use PHPSA\CompiledExpression;
6
use PHPSA\Context;
7
use PHPSA\Compiler\Expression;
8
use PHPSA\Compiler\Expression\AbstractExpressionCompiler;
9
10
class ShellExec extends AbstractExpressionCompiler
11
{
12
    protected $name = 'PhpParser\Node\Expr\ShellExec';
13
14
    /**
15
     * `{expr}`
16
     *
17
     * @param \PhpParser\Node\Expr\ShellExec $expr
18
     * @param Context $context
19
     * @return CompiledExpression
20
     */
21
    protected function compile($expr, Context $context)
22
    {
23
        return CompiledExpression::fromZvalValue(null);
24
    }
25
}
26