Completed
Push — master ( b14e26...fac3e1 )
by Guillaume
13:47
created

UtilisateurEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUtilisateur() 0 4 1
A setUtilisateur() 0 4 1
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 UtilisateurEntity extends Entity
11
{
12
13
    /**
14
     * @var \Starkerxp\StructureBundle\Entity\UtilisateurInterface
15
     *
16
     * @ORM\ManyToOne(targetEntity="\Starkerxp\StructureBundle\Entity\UtilisateurInterface", cascade="persist")
17
     * @ORM\JoinColumn(name="utilisateur_id", referencedColumnName="id", nullable=false)
18
     */
19
    protected $utilisateur;
20
21
    /**
22
     * Get utilisateur
23
     *
24
     * @return \Starkerxp\StructureBundle\Entity\UtilisateurInterface
25
     */
26
    public function getUtilisateur()
27
    {
28
        return $this->utilisateur;
29
    }
30
31
    /**
32
     * Set UtilisateurInterface
33
     *
34
     * @param \Starkerxp\StructureBundle\Entity\UtilisateurInterface $utilisateur
35
     *
36
     */
37
    public function setUtilisateur(\Starkerxp\StructureBundle\Entity\UtilisateurInterface $utilisateur)
38
    {
39
        $this->utilisateur = $utilisateur;
40
    }
41
42
43
}
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...
44