| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | 
							- <?php
 - 
 - /*
 -  * This file is part of the FOSUserBundle package.
 -  *
 -  * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
 -  *
 -  * For the full copyright and license information, please view the LICENSE
 -  * file that was distributed with this source code.
 -  */
 - 
 - namespace FOS\UserBundle\Model;
 - 
 - /**
 -  * Interface to be implemented by group managers. This adds an additional level
 -  * of abstraction between your application, and the actual repository.
 -  *
 -  * All changes to groups should happen through this interface.
 -  *
 -  * @author Christophe Coevoet <stof@notk.org>
 -  */
 - interface GroupManagerInterface
 - {
 -     /**
 -      * Returns an empty group instance.
 -      *
 -      * @param string $name
 -      *
 -      * @return GroupInterface
 -      */
 -     public function createGroup($name);
 - 
 -     /**
 -      * Deletes a group.
 -      *
 -      * @param GroupInterface $group
 -      *
 -      * @return void
 -      */
 -     public function deleteGroup(GroupInterface $group);
 - 
 -     /**
 -      * Finds one group by the given criteria.
 -      *
 -      * @param array $criteria
 -      *
 -      * @return GroupInterface
 -      */
 -     public function findGroupBy(array $criteria);
 - 
 -     /**
 -      * Finds a group by name.
 -      *
 -      * @param string $name
 -      *
 -      * @return GroupInterface
 -      */
 -     public function findGroupByName($name);
 - 
 -     /**
 -      * Returns a collection with all user instances.
 -      *
 -      * @return \Traversable
 -      */
 -     public function findGroups();
 - 
 -     /**
 -      * Returns the group's fully qualified class name.
 -      *
 -      * @return string
 -      */
 -     public function getClass();
 - 
 -     /**
 -      * Updates a group.
 -      *
 -      * @param GroupInterface $group
 -      *
 -      * @return void
 -      */
 -     public function updateGroup(GroupInterface $group);
 - }
 
 
  |