Create interface GroupCenterRepositoryInterface

This commit is contained in:
2026-03-25 13:41:03 +00:00
committed by Boris Waaub
parent 1a9f12f357
commit e359c01df3
2 changed files with 41 additions and 2 deletions

View File

@@ -14,9 +14,8 @@ namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\GroupCenter;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\Persistence\ObjectRepository;
final readonly class GroupCenterRepository implements ObjectRepository
final readonly class GroupCenterRepository implements GroupCenterRepositoryInterface
{
private EntityRepository $repository;

View File

@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
/*
* 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.
*/
namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\GroupCenter;
use Doctrine\Persistence\ObjectRepository;
/**
* @extends ObjectRepository<GroupCenter>
*/
interface GroupCenterRepositoryInterface extends ObjectRepository
{
public function find($id, $lockMode = null, $lockVersion = null): ?GroupCenter;
/**
* @return GroupCenter[]
*/
public function findAll(): array;
/**
* @param mixed|null $limit
* @param mixed|null $offset
*
* @return GroupCenter[]
*/
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array;
public function findOneBy(array $criteria, ?array $orderBy = null): ?GroupCenter;
public function getClassName();
}