Test Setup Failed
Push — master ( 3ef048...5fd193 )
by Vitaliy
02:08
created

DatabaseOperationHandlerTrait::apply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Nayjest\Querying\Handler\Eloquent;
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