Passed
Push — master ( f0273f...a7db3c )
by Afshin
02:04
created

Session   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: afshin
5
 * Date: 12/8/17
6
 * Time: 1:01 AM
7
 */
8
9
namespace Core\Services;
10
11
12
13
class Session
14
{
15
    public $handler;
16
    public function init($driver)
17
    {
18
        $namespace = 'Core\\Handlers\\Session\\';
19
20
        $className = $namespace.ucfirst($driver).'Handler';
21
        $this->handler = new $className();
22
23
        return $this->handler;
24
    }
25
26
}