19 declare(strict_types=1);
49 return $this->structure_factory->set(
56 $reader = $this->reader_factory->reader();
57 return $this->structure_factory->root(
58 $reader->definition(),
59 ...$this->getSubElements(0, ...$reader->subDefinitions())
71 throw new \ilMDStructureException(
'LOM Structure is nested to deep.');
73 foreach ($readers as $reader) {
74 yield $this->structure_factory->structure(
75 $reader->definition(),
76 ...$this->getSubElements($depth + 1, ...$reader->subDefinitions())