AuraSqlInsertInject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setAuraSqlInsert() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule;
6
7
use Aura\SqlQuery\Common\InsertInterface;
8
use Ray\Di\Di\Inject;
9
10
trait AuraSqlInsertInject
11
{
12
    /** @var InsertInterface */
13
    protected $insert;
14
15
    #[Inject]
16
    public function setAuraSqlInsert(InsertInterface $insert): void
17
    {
18
        $this->insert = $insert;
19
    }
20
}
21