1 | <?php |
||
5 | class ChainAggregateIdExtractor implements AggregateIdExtractorInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var AggregateIdExtractorInterface[] |
||
9 | */ |
||
10 | private $extractors = []; |
||
11 | |||
12 | /** |
||
13 | * @param AggregateIdExtractorInterface $aggregateIdExtractor |
||
14 | */ |
||
15 | 4 | public function add(AggregateIdExtractorInterface $aggregateIdExtractor) |
|
19 | |||
20 | /** |
||
21 | * @param object $aggregate |
||
22 | * @return string |
||
23 | */ |
||
24 | 5 | public function extract($aggregate) |
|
34 | } |
||
35 |