Completed
Push — master ( e4a474...3a3d8d )
by Guillaume
02:43
created

AbstractUser::getUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Starkerxp\StructureBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\MappedSuperclass
9
 */
10
abstract class AbstractUser extends AbstractEntity
11
{
12
13
    /**
14
     * @var \Starkerxp\StructureBundle\Entity\UserInterface
15
     *
16
     * @ORM\ManyToOne(targetEntity="\Starkerxp\StructureBundle\Entity\UserInterface", cascade="persist")
17
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true)
18
     */
19
    protected $user;
20
21
    /**
22
     * Get user
23
     *
24
     * @return \Starkerxp\StructureBundle\Entity\UserInterface
25
     */
26
    public function getUser()
27
    {
28
        return $this->user;
29
    }
30
31
    /**
32
     * Set UserInterface
33
     *
34
     * @param \Starkerxp\StructureBundle\Entity\UserInterface $user
35
     *
36
     */
37
    public function setUser(\Starkerxp\StructureBundle\Entity\UserInterface $user)
38
    {
39
        $this->user = $user;
40
    }
41
42
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
43