Completed
Push — 1.x ( ef6978...ce51e1 )
by Akihito
02:14
created

QueryLocatorInject   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 14
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setQueryLocator() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Koriym.QueryLocator
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Koriym\QueryLocator;
8
9
use Koriym\QueryLocator\QueryLocatorInterface;
10
11
trait QueryLocatorInject
12
{
13
    /**
14
     * @var QueryLocatorInterface
15
     */
16
    private $query;
17
18
    /**
19
     * @Ray\Di\Di\Inject
20
     */
21
    public function setQueryLocator(QueryLocatorInterface $query)
22
    {
23
        $this->query = $query;
24
    }
25
}
26