Passed
Push — 9.0-dev ( bf3f06...4f14a6 )
by Radu
01:13
created

AbstractRepository::pdoDb()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace WebServCo\Framework;
3
4
use WebServCo\Framework\Framework as Fw;
5
6
abstract class AbstractRepository
7
{
8
    use \WebServCo\Framework\Traits\OutputTrait;
9
    
10
    public function __construct($outputLoader)
11
    {
12
        $this->outputLoader = $outputLoader;
13
    }
14
    
15
    final protected function pdoDb()
16
    {
17
        return Fw::getLibrary('PdoDatabase');
18
    }
19
    
20
    final protected function mysqliDb()
21
    {
22
        return Fw::getLibrary('MysqliDatabase');
23
    }
24
}
25