Completed
Push — master ( 2bb63b...5d38f1 )
by Guillaume
04:38
created

RoleUtilisateur::getRole()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Starkerxp\UtilisateurBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Starkerxp\StructureBundle\Entity\Entity;
7
8
/**
9
 * RoleUtilisateur
10
 *
11
 * @ORM\Table(name="utilisateur_role")
12
 * @ORM\Entity()
13
 */
14
class RoleUtilisateur extends Entity
15
{
16
17
    /**
18
     * @var array
19
     *
20
     * @ORM\Column(name="roles", type="json_array", nullable=false)
21
     */
22
    protected $role;
23
24
    /**
25
     * RoleUtilisateur constructor.
26
     * @param array $roles
27
     */
28
    public function __construct($roles)
29
    {
30
        $this->role = $roles;
31
    }
32
33
    /**
34
     * @return array
35
     */
36
    public function getRole()
37
    {
38
        return $this->role;
39
    }
40
41
    /**
42
     * @param array $role
43
     */
44
    public function setRole($role)
45
    {
46
        $this->role = $role;
47
    }
48
49
}
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...
50