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