Completed
Push — master ( 4ebfd2...411ae0 )
by Julito
23:19
created

SessionAccess::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\Event;
5
6
use Chamilo\CoreBundle\Entity\Course;
7
use Chamilo\CoreBundle\Entity\Session;
8
use Chamilo\UserBundle\Entity\User;
9
use Symfony\Component\EventDispatcher\Event;
10
11
/**
12
 * Class SessionAccess
13
 * @package Chamilo\CourseBundle\Event
14
 */
15
class SessionAccess extends Event
16
{
17
    protected $user;
18
    protected $course;
19
    protected $session;
20
21
    public function __construct($user, $course, $session)
22
    {
23
        $this->user = $user;
24
        $this->course = $course;
25
        $this->session = $session;
26
    }
27
28
    /**
29
     * @return User
30
     */
31
    public function getUser()
32
    {
33
        return $this->user;
34
    }
35
36
    /**
37
     * @return Course
38
     */
39
    public function getCourse()
40
    {
41
        return $this->course;
42
    }
43
44
    /**
45
     * @return Session
46
     */
47
    public function getSession()
48
    {
49
        return $this->session;
50
    }
51
}
52