AbstractOperand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
4
namespace CondParse\Operand;
5
6
7
use CondParse\LexerToken;
8
use CondParse\OperandInterface;
9
10
abstract class AbstractOperand implements OperandInterface
11
{
12
    /** @var string */
13
    protected $token;
14
15
    /** @var mixed */
16
    protected $value;
17
18
    /**
19
     * @param LexerToken $lexerToken
20
     */
21 35
    public function __construct(LexerToken $lexerToken)
22
    {
23 35
        $this->token = $lexerToken->getToken();
24 35
        $this->value = $lexerToken->getValue();
25 35
    }
26
}
27