Passed
Push — master ( d7519e...edfa92 )
by Radu
01:20
created

ExposeLibrariesTrait::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\Traits;
3
4
use WebServCo\Framework\Framework as Fw;
5
6
trait ExposeLibrariesTrait
7
{
8
    final protected function config()
9
    {
10
        return Fw::getLibrary('Config');
11
    }
12
    
13
    final protected function cookie()
14
    {
15
        return Fw::getLibrary('Cookie');
16
    }
17
    
18
    final protected function i18n()
19
    {
20
        return Fw::getLibrary('I18n');
21
    }
22
    
23
    final protected function mysqliDb()
24
    {
25
        return Fw::getLibrary('MysqliDatabase');
26
    }
27
    
28
    final protected function pdoDb()
29
    {
30
        return Fw::getLibrary('PdoDatabase');
31
    }
32
    
33
    final protected function request()
34
    {
35
        return Fw::getLibrary('Request');
36
    }
37
    
38
    final protected function session()
39
    {
40
        return Fw::getLibrary('Session');
41
    }
42
}
43