Completed
Push — master ( 2e4917...2e950a )
by Klaus
19:05 queued 19:05
created

OperationNode::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\RuleEngine\Ast;
6
7
abstract class OperationNode extends Node
8
{
9
    protected string $operator;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
10
    protected Node $firstOperand;
11
    protected Node $secondOperand;
12
13
    public function __construct(string $operator, Node $firstOperand, Node $secondOperand)
14
    {
15
        $this->operator = $operator;
16
        $this->firstOperand = $firstOperand;
17
        $this->secondOperand = $secondOperand;
18
    }
19
}
20