AuraSqlInject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

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