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

SessionTrait::setSession()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
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