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

DatabaseOperationHandlerTrait::getPriority()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
nc 1
cc 1
eloc 2
nop 0
crap 2
1
<?php
2
3
namespace Nayjest\Querying\Handler\Illuminate;
4
5
use Illuminate\Database\Query\Builder;
6
use Nayjest\Querying\Handler\Priority;
7
8
trait DatabaseOperationHandlerTrait
9
{
10
    abstract protected function applyInternal(Builder $queryBuilder);
11
12
    final public function apply($src)
13
    {
14
        $this->applyInternal($src);
15
        return $src;
16
    }
17
18
    public function getPriority()
19
    {
20
        return Priority::MAIN;
21
    }
22
}
23