OrSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A joinConditions() 0 5 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Puzzle\QueryBuilder\Conditions\Sets;
6
7
use Puzzle\QueryBuilder\Condition;
8
9
class OrSet extends AbstractSet
10
{
11 6
    protected function joinConditions(Condition $leftCondition, Condition $rightCondition): Condition
12
    {
13
        // FIXME or is not defined in Condition interface (it works only if the Condition impl extends AbstractCondition)
14 6
        return $leftCondition->or($rightCondition);
0 ignored issues
show
Bug introduced by
The method or() does not seem to exist on object<Puzzle\QueryBuilder\Condition>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
15
    }
16
}
17