AuraSqlQueryPagerInject::setAuraSqlQueryPager()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule;
6
7
use Ray\AuraSqlModule\Pagerfanta\AuraSqlQueryPagerFactoryInterface;
8
use Ray\Di\Di\Inject;
9
10
trait AuraSqlQueryPagerInject
11
{
12
    /** @var AuraSqlQueryPagerFactoryInterface */
13
    protected $queryPagerFactory;
14
15
    /**
16
     * @Inject
17
     */
18
    #[Inject]
19
    public function setAuraSqlQueryPager(AuraSqlQueryPagerFactoryInterface $queryPagerFactory): void
20
    {
21
        $this->queryPagerFactory = $queryPagerFactory;
22
    }
23
}
24