Passed
Push — master ( 71375f...32edb5 )
by Alexander
07:08
created

SqlConditionBuilder::resolveConditionMethodName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 6
1
<?php declare(strict_types=1);
2
3
namespace Indigerd\Repository\TableGateway\ConditionBuilder;
4
5
class SqlConditionBuilder extends ConditionBuilder
6
{
7
    protected function resolveConditionMethodName($fieldName): string
8
    {
9
        if (\strpos($fieldName, '.') !== false) {
10
            $a = \explode('.', $fieldName);
11
            $fieldName = $a[1];
12
        }
13
        return parent::resolveConditionMethodName($fieldName);
14
    }
15
}
16