Bristol SU Support Package
UserRepository.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
12 interface UserRepository
13 {
14 
21  public function getWhereEmail($email): User;
22 
29  public function getFromControlId(int $controlId): User;
30 
42  public function create(array $attributes): User;
43 
49  public function all();
50 
58  public function getFromRememberToken(string $token): User;
59 
67  public function getById(int $id): User;
68 
75  public function setRememberToken(int $id, $token): void;
76 }