QueryLocatorInject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
eloc 4
c 2
b 0
f 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setQueryLocator() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Koriym\QueryLocator;
6
7
use Ray\Di\Di\Inject;
8
9
trait QueryLocatorInject
10
{
11
    /**
12
     * @var QueryLocatorInterface
13
     */
14
    protected $query;
15
16
    /**
17
     * @Ray\Di\Di\Inject
18
     */
19
    #[Inject]
20
    public function setQueryLocator(QueryLocatorInterface $query)
21
    {
22
        $this->query = $query;
23
    }
24
}
25