mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-28 02:59:40 +00:00
Improve type declarations and add PHPDoc for ThirdPartySearch and ThirdPartyRepository
This commit is contained in:
@@ -19,6 +19,9 @@ use Doctrine\ORM\Query;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Doctrine\Persistence\ObjectRepository;
|
||||
|
||||
/**
|
||||
* @implements ObjectRepository<ThirdParty>
|
||||
*/
|
||||
class ThirdPartyRepository implements ObjectRepository
|
||||
{
|
||||
private readonly EntityRepository $repository;
|
||||
@@ -103,9 +106,6 @@ class ThirdPartyRepository implements ObjectRepository
|
||||
return $this->repository->find($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|ThirdParty[]
|
||||
*/
|
||||
public function findAll(): array
|
||||
{
|
||||
return $this->repository->findAll();
|
||||
@@ -115,7 +115,6 @@ class ThirdPartyRepository implements ObjectRepository
|
||||
* @param null $limit
|
||||
* @param null $offset
|
||||
*
|
||||
* @return array|ThirdParty[]
|
||||
*/
|
||||
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array
|
||||
{
|
||||
|
||||
@@ -69,7 +69,7 @@ class ThirdPartySearch implements SearchInterface
|
||||
return false;
|
||||
}
|
||||
|
||||
public function renderResult(array $terms, $start = 0, $limit = 50, $options = [], $format = 'html')
|
||||
public function renderResult(array $terms, $start = 0, $limit = 50, $options = [], $format = 'html'): array
|
||||
{
|
||||
$centers = $this->authorizationHelper
|
||||
->getReachableCenters(
|
||||
|
||||
Reference in New Issue
Block a user