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

SessionAccess   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSession() 0 3 1
A getUser() 0 3 1
A getCourse() 0 3 1
A __construct() 0 5 1
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