HasSessionTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSession() 0 4 1
A setSession() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Tidal/WampWatch package.
5
 *   (c) 2016 Timo Michna <timomichna/yahoo.de>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 *
10
 */
11
12
namespace Tidal\WampWatch\Model\Property\Object;
13
14
use Tidal\WampWatch\Model\Contract;
15
16
trait HasSessionTrait
17
{
18
    /**
19
     * @var Contract\SessionInterface
20
     */
21
    private $session;
22
23
    /**
24
     * @return Contract\SessionInterface
25
     */
26
    public function getSession()
27
    {
28
        return $this->session;
29
    }
30
31
    /**
32
     * @param Contract\SessionInterface $session
33
     */
34
    private function setSession(Contract\SessionInterface $session)
35
    {
36
        $this->session = $session;
37
    }
38
}
39