Passed
Push — master ( 6028dd...89a59a )
by Vitaliy
02:15
created

DatabaseOperationHandlerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
applyInternal() 0 1 ?
A apply() 0 5 1
A getPriority() 0 4 1
1
<?php
2
3
namespace Nayjest\Querying\Handler\Doctrine;
4
5
use Doctrine\DBAL\Query\QueryBuilder;
6
use Nayjest\Querying\Handler\Priority;
7
8
trait DatabaseOperationHandlerTrait
9
{
10
    abstract protected function applyInternal(QueryBuilder $queryBuilder);
11
12 1
    final public function apply($src)
13
    {
14 1
        $this->applyInternal($src);
15 1
        return $src;
16
    }
17
18 1
    public function getPriority()
19
    {
20 1
        return Priority::MAIN;
21
    }
22
}
23