Passed
Push — master ( ca838e...76d3e9 )
by Radu
01:16
created

AbstractRepository::i18n()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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
    final protected function i18n()
26
    {
27
        return Fw::getLibrary('I18n');
28
    }
29
    
30
    final protected function session()
31
    {
32
        return Fw::getLibrary('Session');
33
    }
34
}
35