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

CLpCategoryRelUserGroup   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 53
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Chamilo\CoreBundle\Entity\Course;
8
use Chamilo\CoreBundle\Entity\Session;
9
use Chamilo\CoreBundle\Traits\CourseTrait;
10
use Chamilo\CoreBundle\Traits\SessionTrait;
11
use Doctrine\ORM\Mapping as ORM;
12
use Gedmo\Mapping\Annotation as Gedmo;
13
14
/**
15
 * @ORM\Table(name="c_lp_category_rel_usergroup")
16
 */
17
class CLpCategoryRelUserGroup
18
{
19
    use CourseTrait;
20
    use SessionTrait;
21
22
    /**
23
     * @var int
24
     *
25
     * @ORM\Column(name="id", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    protected $id;
30
31
    /**
32
     * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLpCategory")
33
     * @ORM\JoinColumn(name="category_id", referencedColumnName="iid")
34
     */
35
    protected $category;
36
37
    /**
38
     * @var Session
39
     *
40
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Session")
41
     * @ORM\JoinColumn(name="session_id", referencedColumnName="id", nullable=true)
42
     */
43
    protected $session;
44
45
    /**
46
     * @var Course
47
     *
48
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course")
49
     * @ORM\JoinColumn(name="c_id", referencedColumnName="id", nullable=false)
50
     */
51
    protected $course;
52
53
    /**
54
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Usergroup")
55
     * @ORM\JoinColumn(name="usergroup_id", referencedColumnName="id", nullable=true)
56
     */
57
    protected $userGroup;
58
59
    /**
60
     * @var \DateTime
61
     *
62
     * @Gedmo\Timestampable(on="create")
63
     *
64
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
65
     */
66
    protected $createdAt;
67
68
    public function __construct()
69
    {
70
    }
71
}
72