Lines
100.00%
5 / 5
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| findUsers | 100.00% | 4 / 4 | 100.00% | 1 / 1 | 1 | ||
| 22 | class UserRepository extends ServiceEntityRepository | |
| 23 | { | |
| 24 | public function __construct(ManagerRegistry $registry) | |
| 25 | { | |
| 26 | parent::__construct($registry, User::class); | |
| 27 | } | |
| 28 | ||
| 29 | /** | |
| 30 | * @return User[] | |
| 31 | */ | |
| 32 | public function findUsers(): array | |
| 33 | { | |
| 34 | return $this->findBy( | |
| 35 | ['role' => UserRole::USER], | |
| 36 | ['id' => 'ASC'] | |
| 37 | ); | |
| 38 | } | |
| 39 | } |