Session   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 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