1 | <?php |
||
12 | class UserEventSourcedRepository implements UserRepository |
||
13 | { |
||
14 | /** |
||
15 | * @var EventSourcingRepository |
||
16 | */ |
||
17 | private $repository; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param EventSourcingRepository $repository |
||
23 | */ |
||
24 | 12 | public function __construct(EventSourcingRepository $repository) |
|
28 | |||
29 | /** |
||
30 | * Saves a mini-game |
||
31 | * |
||
32 | * @param SourcedUser $user |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | 3 | public function save(SourcedUser $user) |
|
40 | |||
41 | /** |
||
42 | * Get the user corresponding to the id |
||
43 | * |
||
44 | * @param ApplicationUserId $id |
||
45 | * |
||
46 | * @throws MessageAppException |
||
47 | * @return SourcedUser |
||
48 | */ |
||
49 | 9 | public function load(ApplicationUserId $id) |
|
59 | } |
||
60 |