| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public static function from(EntityInterface $entity): Entity |
||
| 11 | { |
||
| 12 | return (new Entity($entity->getName())) |
||
| 13 | ->setParentNames($entity->getParentNames()) |
||
| 14 | ->setOriginalDescriptor($entity->getOriginalDescriptor()) |
||
| 15 | ->setHierarchy($entity->getHierarchy()) |
||
| 16 | ->setCompiledDescriptor($entity->getCompiledDescriptor()) |
||
| 17 | ->setRootLevelDocument($entity->isRootLevelDocument()) |
||
| 18 | ->setIndexing($entity->getIndexing()) |
||
| 19 | ->setMapping($entity->getMapping()); |
||
| 20 | } |
||
| 22 |