Session::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace mb24dev\AmoCRM\Session;
4
5
/**
6
 * Class Session
7
 *
8
 * @package mb24dev\AmoCRM
9
 */
10
class Session implements SessionInterface
11
{
12
    private $id;
13
14
    /**
15
     * Session constructor.
16
     *
17
     * @param $id
18
     */
19 4
    public function __construct($id)
20
    {
21 4
        $this->id = $id;
22 4
    }
23
24
    /**
25
     * @return mixed
26
     */
27 3
    public function getId()
28
    {
29 3
        return $this->id;
30
    }
31
}
32