| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function extend(DescriptorInterface $parent, DescriptorInterface $child): Descriptor |
||
| 27 | { |
||
| 28 | $target = static::from($child); |
||
| 29 | $mapping = MappingOperations::extend($parent->getMapping(), $child->getMapping()); |
||
| 30 | $indexing = IndexingOperations::merge($parent->getIndexing(), $child->getIndexing()); |
||
| 31 | return $target |
||
| 32 | ->setMapping($mapping) |
||
| 33 | ->setIndexing($indexing); |
||
| 34 | } |
||
| 36 |