Passed
Push — master ( 15dae9...698027 )
by Julito
12:28
created

CourseControllerTrait::getSession()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Controller;
5
6
use Chamilo\CoreBundle\Entity\Course;
7
use Chamilo\CoreBundle\Entity\Session;
8
9
/**
10
 * Trait CourseControllerTrait.
11
 * Implements the functions defined by the CourseControllerInterface
12
 *
13
 * @package Chamilo\CourseBundle\Controller
14
 */
15
trait CourseControllerTrait
16
{
17
    protected $course;
18
    protected $session;
19
20
    /**
21
     * @param Course $course
22
     *
23
     * @return mixed
24
     */
25
    public function setCourse(Course $course)
26
    {
27
        $this->course = $course;
28
    }
29
30
    /**
31
     * @param Session $session
32
     *
33
     * @return mixed
34
     */
35
    public function setSession(Session $session)
36
    {
37
        $this->session = $session;
38
    }
39
40
    /**
41
     * @return Course
42
     */
43
    public function getCourse()
44
    {
45
        return $this->course;
46
    }
47
48
    /**
49
     * @return Session
50
     */
51
    public function getSession()
52
    {
53
        return $this->session;
54
    }
55
}
56