Completed
Push — master ( 662a49...9d1eac )
by Дмитрий
9s
created

AbstractBinaryOp   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSubVariables() 0 8 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\ControlFlow\Node\Expr\BinaryOp;
7
8
use PHPSA\ControlFlow\Node\AbstractNode;
9
10
abstract class AbstractBinaryOp extends AbstractNode
11
{
12
    public $left;
13
14
    public $right;
15
16
    public $result;
17
18
    /**
19
     * @return array
20
     */
21
    public function getSubVariables()
22
    {
23
        return [
24
            'left' => $this->left,
25
            'right' => $this->right,
26
            'result' => $this->result
27
        ];
28
    }
29
}
30