1 | <?php |
||
11 | class AggregatorRelay |
||
12 | { |
||
13 | /** |
||
14 | * @var KeyGenerator |
||
15 | */ |
||
16 | private $keyGenerator; |
||
17 | |||
18 | /** |
||
19 | * @var Aggregator[] |
||
20 | */ |
||
21 | private $aggregators = []; |
||
22 | |||
23 | /** |
||
24 | * @param KeyGenerator $keyGenerator |
||
25 | */ |
||
26 | public function __construct(KeyGenerator $keyGenerator) |
||
30 | |||
31 | /** |
||
32 | * @param CodepointAssigned $entity |
||
33 | * @throws InvalidArgumentException |
||
34 | */ |
||
35 | public function add(CodepointAssigned $entity) |
||
40 | |||
41 | /** |
||
42 | * @param CodepointAssigned[] $entities |
||
43 | */ |
||
44 | public function addMany(array $entities) |
||
50 | |||
51 | /** |
||
52 | * @param CodepointAssigned $entity |
||
53 | * @return Aggregator |
||
54 | */ |
||
55 | protected function getAggregatorFor(CodepointAssigned $entity) |
||
65 | |||
66 | /** |
||
67 | * @return Range\Collection[] |
||
68 | */ |
||
69 | public function getAllRanges() |
||
79 | } |