Completed
Push — master ( c9546d...95f607 )
by Julito
09:41
created

Admin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Chamilo\CoreBundle\Traits\UserTrait;
8
use Doctrine\ORM\Mapping as ORM;
9
10
/**
11
 * Admin.
12
 *
13
 * @ORM\Table(name="admin")
14
 * @ORM\Entity
15
 */
16
class Admin
17
{
18
    use UserTrait;
19
20
    /**
21
     * @var int
22
     *
23
     * @ORM\Column(name="id", type="integer")
24
     * @ORM\Id
25
     * @ORM\GeneratedValue(strategy="IDENTITY")
26
     */
27
    protected $id;
28
29
    /**
30
     * @ORM\OneToOne(
31
     *     targetEntity="Chamilo\CoreBundle\Entity\User",
32
     *     inversedBy="admin"
33
     * )
34
     * @ORM\JoinColumn(
35
     *     name="user_id",
36
     *     referencedColumnName="id",
37
     *     onDelete="CASCADE")
38
     */
39
    protected $user;
40
41
    /**
42
     * Get id.
43
     *
44
     * @return int
45
     */
46
    public function getId()
47
    {
48
        return $this->id;
49
    }
50
}
51