AndSet::joinConditions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 2
crap 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 AndSet 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->and($rightCondition);
0 ignored issues
show
Bug introduced by
The method and() 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