|
3
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the FOSUserBundle package. |
|
|
5 |
* |
|
|
6 |
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace FOS\UserBundle\Model; |
|
|
13 |
|
|
|
14 |
/** |
|
|
15 |
* @author Johannes M. Schmitt <schmittjoh@gmail.com> |
|
|
16 |
* @author Christophe Coevoet <stof@notk.org> |
|
|
17 |
*/ |
|
|
18 |
interface GroupInterface |
|
|
19 |
{ |
|
|
20 |
function addRole($role); |
|
|
21 |
|
|
|
22 |
function getId(); |
|
|
23 |
|
|
|
24 |
function getName(); |
|
|
25 |
|
|
|
26 |
function hasRole($role); |
|
|
27 |
|
|
|
28 |
function getRoles(); |
|
|
29 |
|
|
|
30 |
function removeRole($role); |
|
|
31 |
|
|
|
32 |
function setName($name); |
|
|
33 |
|
|
|
34 |
function setRoles(array $roles); |
|
|
35 |
} |