Passed
Push — master ( 76d3e9...73f345 )
by Radu
01:24
created

AbstractRepository::session()   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
    use \WebServCo\Framework\Traits\ExposeLibrariesTrait;
10
    
11
    public function __construct($outputLoader)
12
    {
13
        $this->outputLoader = $outputLoader;
14
    }
15
    
16
    final protected function pdoDb()
17
    {
18
        return Fw::getLibrary('PdoDatabase');
19
    }
20
    
21
    final protected function mysqliDb()
22
    {
23
        return Fw::getLibrary('MysqliDatabase');
24
    }
25
}
26