ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\BaseSet
Definition:
BaseSet.php:24
ILIAS\MetaData\Elements\Base\BaseSet\getRoot
getRoot()
Returns the root element of the metadata set.
Definition:
BaseSet.php:42
ILIAS\MetaData\Elements\Base\BaseSet\__construct
__construct(BaseElementInterface $root)
Definition:
BaseSet.php:27
ILIAS\MetaData\Elements\Base\BaseSet\$root
BaseElementInterface $root
Definition:
BaseSet.php:25
ILIAS\MetaData\Elements\Base\BaseSet\__clone
__clone()
Definition:
BaseSet.php:37
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:28
ILIAS\MetaData\Elements\Base\BaseElementInterface\getSuperElement
getSuperElement()
ILIAS\MetaData\Elements\Base\BaseElementInterface\isRoot
isRoot()
ILIAS\MetaData\Elements\Base\BaseSetInterface
Definition:
BaseSetInterface.php:24
ILIAS\MetaData\Elements\Base
Definition:
BaseElement.php:21
components
ILIAS
MetaData
classes
Elements
Base
BaseSet.php
Generated on Sat Oct 18 2025 23:03:27 for ILIAS by
1.9.4 (using
Doxyfile
)