1 | <?php |
||
12 | class AggregationHandler extends Service implements HandlerInterface |
||
13 | { |
||
14 | /** @var IncidentSource */ |
||
15 | private $source; |
||
16 | |||
17 | /** @var SnapshotService */ |
||
18 | private $service; |
||
19 | |||
20 | /** |
||
21 | * Aggregation constructor. |
||
22 | * |
||
23 | * @param IncidentSource $snapshots |
||
24 | * @param SnapshotService $service |
||
25 | */ |
||
26 | public function __construct(IncidentSource $snapshots, SnapshotService $service) |
||
31 | |||
32 | /** |
||
33 | * Create snapshot aggregation and aggregated snapshot and tie them together. |
||
34 | * |
||
35 | * @param SnapshotInterface $snapshot |
||
36 | */ |
||
37 | public function registerSnapshot(SnapshotInterface $snapshot) |
||
47 | } |