vendor/bundles/FOS/UserBundle/Model/GroupInterface.php
changeset 3 e54dfe4d0b2b
equal deleted inserted replaced
2:806e57d67020 3:e54dfe4d0b2b
       
     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 }