api for grouping centers, select centers as group in "pick centers" step

for exports
This commit is contained in:
2019-01-28 15:21:31 +01:00
parent cf354cbccd
commit 722274964c
8 changed files with 179 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
<?php
/*
*
*/
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
{
/**
* @return string[]
*/
public function getGroups($authorizedCenters = null): array;
/**
*
* @param string $group
* @return \Chill\MainBundle\Entity\Center[]
*/
public function getCentersForGroup($group);
}