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

RoleUtilisateur   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRoles() 0 4 1
A setRoles() 0 4 1
1
<?php
2
3
namespace Starkerxp\UtilisateurBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Starkerxp\StructureBundle\Entity\UtilisateurEntity;
7
8
/**
9
 * RoleUtilisateur
10
 *
11
 * @ORM\Table(name="utilisateur_role")
12
 * @ORM\Entity()
13
 */
14
class RoleUtilisateur extends UtilisateurEntity
15
{
16
17
    /**
18
     * @var array
19
     *
20
     * @ORM\Column(name="roles", type="json_array", nullable=false)
21
     */
22
    protected $roles;
23
24
    /**
25
     * @return array
26
     */
27
    public function getRoles()
28
    {
29
        return $this->roles;
30
    }
31
32
    /**
33
     * @param array $roles
34
     */
35
    public function setRoles($roles)
36
    {
37
        $this->roles = $roles;
38
    }
39
40
41
}
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...
42