chill-bundles/src/Bundle/ChillMainBundle/Center/GroupingCenterInterface.php
2021-11-30 13:54:58 +01:00

36 lines
759 B
PHP

<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\MainBundle\Center;
/**
* Interface to declare a groups of centers.
*
* This interface is used to declare a groups of centers in
* `Chill\MainBundle\Form\Export\PickCenterType`.
*/
interface GroupingCenterInterface
{
/**
* @param string $group
*
* @return \Chill\MainBundle\Entity\Center[]
*/
public function getCentersForGroup($group);
/**
* @param mixed|null $authorizedCenters
*
* @return string[]
*/
public function getGroups($authorizedCenters = null): array;
}