ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
BaseSet.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements\Base
;
22
23
abstract
class
BaseSet
implements
BaseSetInterface
24
{
25
private
BaseElementInterface
$root
;
26
27
public
function
__construct
(
BaseElementInterface
$root)
28
{
29
if
(!$root->
isRoot
() || $root->
getSuperElement
()) {
30
throw
new \ilMDElementsException(
31
'Metadata sets must be created from a root element.'
32
);
33
}
34
$this->root =
$root
;
35
}
36
37
public
function
__clone
()
38
{
39
$this->root = clone
$this->root
;
40
}
41
42
public
function
getRoot
():
BaseElementInterface
43
{
44
return
$this->root
;
45
}
46
}
ILIAS\MetaData\Elements\Base\BaseElementInterface\isRoot
isRoot()
ILIAS\MetaData\Elements\Base
Definition:
BaseElement.php:21
ILIAS\MetaData\Elements\Base\BaseSetInterface
Definition:
BaseSetInterface.php:23
ILIAS\MetaData\Elements\Base\BaseSet\__construct
__construct(BaseElementInterface $root)
Definition:
BaseSet.php:27
ILIAS\MetaData\Elements\Base\BaseSet\__clone
__clone()
Definition:
BaseSet.php:37
ILIAS\MetaData\Elements\Base\BaseElementInterface\getSuperElement
getSuperElement()
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Elements\Base\BaseSet
Definition:
BaseSet.php:23
ILIAS\MetaData\Elements\Base\BaseSet\$root
BaseElementInterface $root
Definition:
BaseSet.php:25
ILIAS\MetaData\Elements\Base\BaseSet\getRoot
getRoot()
Returns the root element of the metadata set.
Definition:
BaseSet.php:42
components
ILIAS
MetaData
classes
Elements
Base
BaseSet.php
Generated on Wed Sep 3 2025 23:03:28 for ILIAS by
1.8.13 (using
Doxyfile
)