| 1 | <?php |
||
| 9 | class GroupManager |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var EntityManagerInterface |
||
| 13 | */ |
||
| 14 | protected $em; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $class; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var ObjectRepository |
||
| 23 | */ |
||
| 24 | protected $repository; |
||
| 25 | |||
| 26 | public function __construct(EntityManagerInterface $em, string $class) |
||
| 34 | |||
| 35 | public function createGroup($name) |
||
| 41 | |||
| 42 | public function deleteGroup(GroupInterface $group) |
||
| 47 | |||
| 48 | public function updateGroup(GroupInterface $group, $andFlush = true) |
||
| 55 | |||
| 56 | public function getClass() |
||
| 60 | |||
| 61 | public function findGroups() |
||
| 65 | |||
| 66 | public function findGroupByName($name) |
||
| 70 | |||
| 71 | public function findGroupBy(array $criteria) |
||
| 75 | } |
||
| 76 |