Passed
Push — master ( a02707...7dc539 )
by Julito
12:00
created

SessionTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSession() 0 3 1
A setSession() 0 5 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Traits;
6
7
use Chamilo\CoreBundle\Entity\Session;
8
9
trait SessionTrait
10
{
11
    protected $session;
12
13
    /**
14
     * @return Session
15
     */
16
    public function getSession()
17
    {
18
        return $this->session;
19
    }
20
21
    public function setSession(Session $session): self
22
    {
23
        $this->session = $session;
24
25
        return $this;
26
    }
27
}
28