Passed
Push — 9.0-dev ( b21ff2...8d3b40 )
by Radu
01:51
created

AbstractRepository   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 22
rs 10
c 2
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A pdoDb() 0 3 1
A mysqliDb() 0 3 1
A session() 0 3 1
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
    final protected function session()
26
    {
27
        return Fw::getLibrary('Session');
28
    }
29
}
30