mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Refactor docblocks in UserJob repository interfaces.
Removed redundant PHP docblocks for array return types, as the return type hints already provide sufficient clarity. Added a @template annotation to specify the UserJob entity for the ObjectRepository.
This commit is contained in:
parent
9be8a533ff
commit
d506409d93
@ -30,9 +30,6 @@ readonly class UserJobRepository implements UserJobRepositoryInterface
|
|||||||
return $this->repository->find($id);
|
return $this->repository->find($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array|UserJob[]
|
|
||||||
*/
|
|
||||||
public function findAll(): array
|
public function findAll(): array
|
||||||
{
|
{
|
||||||
return $this->repository->findAll();
|
return $this->repository->findAll();
|
||||||
|
@ -14,18 +14,15 @@ namespace Chill\MainBundle\Repository;
|
|||||||
use Chill\MainBundle\Entity\UserJob;
|
use Chill\MainBundle\Entity\UserJob;
|
||||||
use Doctrine\Persistence\ObjectRepository;
|
use Doctrine\Persistence\ObjectRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @template-extends ObjectRepository<UserJob>
|
||||||
|
*/
|
||||||
interface UserJobRepositoryInterface extends ObjectRepository
|
interface UserJobRepositoryInterface extends ObjectRepository
|
||||||
{
|
{
|
||||||
public function find($id): ?UserJob;
|
public function find($id): ?UserJob;
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array|UserJob[]
|
|
||||||
*/
|
|
||||||
public function findAll(): array;
|
public function findAll(): array;
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array|UserJob[]
|
|
||||||
*/
|
|
||||||
public function findAllActive(): array;
|
public function findAllActive(): array;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user