ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StructureSet.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
28 {
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}
BaseElementInterface $root
Definition: BaseSet.php:25
__construct(StructureElementInterface $root)
getRoot()
Returns the root element of the metadata set.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc