ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
StructureSet.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 class StructureSet extends BaseSet implements StructureSetInterface
26 {
28  {
29  parent::__construct($root);
30  }
31 
33  {
34  $root = parent::getRoot();
35  if ($root instanceof StructureElementInterface) {
36  return $root;
37  }
38  throw new \ilMDElementsException(
39  'Metadata set has invalid root element.'
40  );
41  }
42 }
__construct(StructureElementInterface $root)
getRoot()
Returns the root element of the metadata set.
__construct(VocabulariesInterface $vocabularies)
BaseElementInterface $root
Definition: BaseSet.php:25