Completed
Push — master ( 4be93f...79933c )
by Guillaume
11:24
created

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