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

ExposeLibrariesTrait   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A config() 0 3 1
A i18n() 0 3 1
A request() 0 3 1
A session() 0 3 1
A cookie() 0 3 1
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 request()
24
    {
25
        return Fw::getLibrary('Request');
26
    }
27
    
28
    final protected function session()
29
    {
30
        return Fw::getLibrary('Session');
31
    }
32
}
33