mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
list referral for an accompanying period
This commit is contained in:
@@ -48,6 +48,24 @@ final class UserRepository implements ObjectRepository
|
||||
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
|
||||
}
|
||||
|
||||
public function countBy(array $criteria): int
|
||||
{
|
||||
return $this->repository->count($criteria);
|
||||
}
|
||||
|
||||
public function countByActive(): int
|
||||
{
|
||||
return $this->countBy(['enabled' => true]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return User[]|array
|
||||
*/
|
||||
public function findByActive(array $orderBy = null, int $limit = null, int $offset = null): array
|
||||
{
|
||||
return $this->findBy(['enabled' => true], $orderBy, $limit, $offset);
|
||||
}
|
||||
|
||||
public function getClassName() {
|
||||
return User::class;
|
||||
}
|
||||
|
Reference in New Issue
Block a user