Completed
Push — master ( 5a98e1...9d14a0 )
by Дмитрий
02:33
created

ExpressionBeforeCompile   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\Compiler\Event;
7
8
use PHPSA\Context;
9
10
class ExpressionBeforeCompile extends \Webiny\Component\EventManager\Event
11
{
12
    const EVENT_NAME = 'expression.before-compile';
13
14
    /**
15
     * @var Context
16
     */
17
    private $context;
18
19
    /**
20
     * @var \PhpParser\Node\Expr
21
     */
22
    private $expression;
23
24
    public function __construct(\PhpParser\Node\Expr $expression, Context $context)
25
    {
26
        parent::__construct();
27
28
        $this->context = $context;
29
        $this->expression = $expression;
30
    }
31
}
32