1 | <?php |
||
10 | class InMemoryBaseUserRepository implements UserRepositoryInterface |
||
11 | { |
||
12 | /** @var BaseUser[] */ |
||
13 | private $users = []; |
||
14 | |||
15 | public function __construct() |
||
38 | |||
39 | public function findByUsername($username) |
||
49 | |||
50 | /** |
||
51 | * @param string $emailAddress |
||
52 | * |
||
53 | * @return User|null |
||
54 | */ |
||
55 | public function findByEmailAddress($emailAddress) |
||
65 | |||
66 | public function find($id) |
||
76 | |||
77 | public function supportsClass($class) |
||
81 | |||
82 | public function findByPasswordResetToken(PasswordResetToken $token) |
||
86 | |||
87 | public function add(User $user) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | * |
||
95 | * This does nothing here since the objects get updated by reference when changing them in the tests |
||
96 | */ |
||
97 | public function save(User $user) |
||
100 | |||
101 | public function delete(User $user) |
||
110 | } |
||
111 |