Completed
Pull Request — 2.x (#80)
by
unknown
02:00
created

NullSession::regenerateId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
nc 1
cc 1
eloc 2
nop 0
crap 1
1
<?php
2
/**
3
 *
4
 * This file is part of Aura for PHP.
5
 *
6
 * @license http://opensource.org/licenses/bsd-license.php BSD
7
 *
8
 */
9
namespace Aura\Auth\Session;
10
11
/**
12
 *
13
 * Session manager.
14
 *
15
 * @package Aura.Auth
16
 *
17
 */
18
class NullSession implements SessionInterface
19
{
20
    /**
21
     *
22
     * Start Session
23
     *
24
     * @return bool
25
     *
26
     */
27 1
    public function start()
28
    {
29 1
        return true;
30
    }
31
32
    /**
33
     *
34
     * Resume previous session
35
     *
36
     * @return bool
37
     *
38
     */
39 1
    public function resume()
40
    {
41 1
        return false;
42
    }
43
44
    /**
45
     *
46
     * Re generate session id
47
     *
48
     * @return mixed
49
     *
50
     */
51 1
    public function regenerateId()
52
    {
53 1
        return true;
54
    }
55
}
56