Group::setRoles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

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 1
nc 1
nop 1
1
<?php
2
3
namespace Badger\Bundle\UserBundle\Entity;
4
5
use FOS\UserBundle\Model\GroupInterface;
6
7
/**
8
 * @author  Adrien Pétremann <[email protected]>
9
 * @license http://opensource.org/licenses/MIT The MIT License (MIT)
10
 */
11
class Group implements GroupInterface
12
{
13
    /** @var string */
14
    protected $id;
15
16
    /** @var string */
17
    protected $name;
18
19
    /**
20
     * @param string $role
21
     *
22
     * @return self
23
     */
24
    public function addRole($role)
25
    {
26
        // TODO: Implement addRole() method.
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getId()
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
45
    /**
46
     * @param string $role
47
     *
48
     * @return boolean
49
     */
50
    public function hasRole($role)
51
    {
52
        // TODO: Implement hasRole() method.
53
    }
54
55
    /**
56
     * @return array
57
     */
58
    public function getRoles()
59
    {
60
        // TODO: Implement getRoles() method.
61
    }
62
63
    /**
64
     * @param string $role
65
     *
66
     * @return self
67
     */
68
    public function removeRole($role)
69
    {
70
        // TODO: Implement removeRole() method.
71
    }
72
73
    /**
74
     * @param string $name
75
     *
76
     * @return self
77
     */
78
    public function setName($name)
79
    {
80
        $this->name = $name;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param array $roles
87
     *
88
     * @return self
89
     */
90
    public function setRoles(array $roles)
91
    {
92
        // TODO: Implement setRoles() method.
93
    }
94
}
95