mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 23:28:20 +00:00
Some code cleaning up and refactoring.
This commit is contained in:
@@ -22,11 +22,15 @@ use Illuminate\Support\Collection;
|
||||
interface UserRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* Returns a collection of all users.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function all(): Collection;
|
||||
|
||||
/**
|
||||
* Gives a user a role.
|
||||
*
|
||||
* @param User $user
|
||||
* @param string $role
|
||||
*
|
||||
@@ -35,6 +39,8 @@ interface UserRepositoryInterface
|
||||
public function attachRole(User $user, string $role): bool;
|
||||
|
||||
/**
|
||||
* Returns a count of all users.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function count(): int;
|
||||
|
||||
Reference in New Issue
Block a user