Passed
Push — master ( ce82c1...126939 )
by Бабичев
02:28
created

Session   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 3
1
<?php
2
3
namespace Bavix\Context;
4
5
class Session extends Container
6
{
7
8
    /**
9
     * Session constructor.
10
     *
11
     * @param string $password
12
     */
13 7
    public function __construct(?string $password = null)
14
    {
15
        \PHP_SAPI === 'cli' OR \session_id() OR \session_start();
16 7
        parent::__construct($password);
17 7
        $this->store = &$_SESSION;
18 7
    }
19
20
}
21