ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
AbstractChildItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
use
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
;
25
30
abstract
class
AbstractChildItem
extends
AbstractBaseItem
implements
isItem
,
isChild
31
{
32
use
SymbolDecoratorTrait
;
36
protected
$parent
;
37
41
public
function
withParent
(
IdentificationInterface
$identification) :
isItem
42
{
43
$clone = clone $this;
44
$clone->parent = $identification;
45
46
return
$clone;
47
}
48
52
public
function
hasParent
() : bool
53
{
54
return
($this->parent instanceof
IdentificationInterface
);
55
}
56
60
public
function
getParent
() :
IdentificationInterface
61
{
62
return
$this->parent
;
63
}
64
68
public
function
overrideParent
(
IdentificationInterface
$identification) :
isChild
69
{
70
$this->parent = $identification;
71
72
return
$this;
73
}
74
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\overrideParent
overrideParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:68
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:32
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:37
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\getParent
getParent()
Definition:
AbstractChildItem.php:60
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:20
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\withParent
withParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:41
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isChild
Interface isChild.
Definition:
isChild.php:28
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\$parent
$parent
Definition:
AbstractChildItem.php:36
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\hasParent
hasParent()
Definition:
AbstractChildItem.php:52
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem
Class AbstractChildItem.
Definition:
AbstractChildItem.php:30
src
GlobalScreen
Scope
MetaBar
Factory
AbstractChildItem.php
Generated on Wed Sep 3 2025 21:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)