Completed
Push — master ( 28d1f7...8f0d0f )
by Enrico
05:45
created

Smaller::compare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PHPSA\Compiler\Expression\Operators\Comparison;
4
5
class Smaller extends AbstractOperator
6
{
7
    protected $name = 'PhpParser\Node\Expr\BinaryOp\Smaller';
8
9
    /**
10
     * {expr} < {expr}
11
     *
12
     * @param $left
13
     * @param $right
14
     * @return bool
15
     */
16 4
    public function compare($left, $right)
17
    {
18 4
        return $left < $right;
19
    }
20
}
21