Some code cleaning up and refactoring.

This commit is contained in:
James Cole
2016-04-26 08:09:10 +02:00
parent 22e6ea700f
commit 1c8834fffb
8 changed files with 148 additions and 143 deletions

View File

@@ -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;