| 1 | <?php |
||
| 10 | abstract class UserRepository extends EntityRepository implements UserRepositoryInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param UserInterface $user |
||
| 14 | */ |
||
| 15 | public function add(UserInterface $user) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $username |
||
| 23 | * |
||
| 24 | * @return null|UserInterface |
||
| 25 | */ |
||
| 26 | public function findByUsername($username) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $class |
||
| 33 | * |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | abstract public function supportsClass($class); |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param UserInterface $user |
||
| 40 | */ |
||
| 41 | public function save(UserInterface $user) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param UserInterface $user |
||
| 48 | */ |
||
| 49 | public function delete(UserInterface $user) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param PasswordResetToken $token |
||
| 57 | * |
||
| 58 | * @return null|UserInterface |
||
| 59 | */ |
||
| 60 | public function findByPasswordResetToken(PasswordResetToken $token) |
||
| 64 | } |
||
| 65 |