1 | <?php namespace C4tech\RayEmitter\Domain; |
||
10 | abstract class Repository implements RepositoryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @inheritDoc |
||
14 | */ |
||
15 | 2 | public static function find($identifier) |
|
22 | |||
23 | /** |
||
24 | * @inheritDoc |
||
25 | */ |
||
26 | 1 | public static function getEntity($identifier) |
|
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | 3 | public static function handle(CommandInterface $command) |
|
66 | |||
67 | /** |
||
68 | * Restore |
||
69 | * |
||
70 | * Hydrate an aggregate with its recorded events. |
||
71 | * @param string $identifier Aggregate root entity identifier. |
||
72 | * @param AggregateInterface &$aggregate (Fresh) Aggregate to hydrate. |
||
73 | * @return void |
||
74 | */ |
||
75 | 4 | protected static function restore($identifier, AggregateInterface &$aggregate) |
|
80 | } |
||
81 |